Skip to content

Is it possible to require all GitHub Actions tasks to pass without enumerating them? #26733

Answered by webknjaz
jameslamb asked this question in Actions
Discussion options

You must be logged in to vote

@graingert it was discovered that when dependencies don’t succeed, that check job is marked as skipped which auto-merge treats the same way as success. I solved this problem with https://github.com/re-actors/alls-green.

Here's a short example:

---

on:
  pull_request:
  push:

jobs:
  tests:
    ...
    strategy:
      matrix:
        python-version:
        # - ~3.12.0-0  # doesn't yet exist as of Oct 04, 2022
        - ~3.11.0-0
        - >-
          3.10
        - 3.9
    ...
    continue-on-error: >-  # this allows "unstable" versions to fail, except for 3.11, meaning 3.12 alpha when it's added
      ${{
        (
          startsWith(matrix.python-version, '~')
          && !startsW…

Replies: 8 comments 17 replies

Comment options

You must be logged in to vote
1 reply
@webknjaz
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
10 replies
@jameslamb
Comment options

@webknjaz
Comment options

@nikaro
Comment options

@webknjaz
Comment options

@webknjaz
Comment options

Answer selected by jameslamb
Comment options

You must be logged in to vote
1 reply
@webknjaz
Comment options

Comment options

You must be logged in to vote
5 replies
@webknjaz
Comment options

@adamu
Comment options

@webknjaz
Comment options

@adamu
Comment options

@webknjaz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment