Skip to content

Status check for a matrix jobs #26822

Answered by richja
edzis asked this question in Actions
Aug 13, 2020 · 12 comments · 6 replies
Discussion options

You must be logged in to vote

late to the party but looks like result of matrix now works as expected when using: needs.<job_id>.result

so I can have just one single additional job which I can set as required

results:
    if: ${{ always() }}
    runs-on: ubuntu-latest
    name: Final Results
    needs: [build]
    steps:
      - run: |
          result="${{ needs.build.result }}"
          if [[ $result == "success" || $result == "skipped" ]]; then
            exit 0
          else
            exit 1
          fi

Replies: 12 comments 6 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
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
1 reply
@thaysealencar
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

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

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@nkuehn
Comment options

@radoslaw-szpiech
Comment options

@sounisi5011
Comment options

@etianen
Comment options

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