Skip to content

Get status of parallel jobs into a single Webhook payload #26526

Answered by weide-zhou
benstear asked this question in Actions
Discussion options

You must be logged in to vote

Hi @benstear ,

The matrix job status and combination info can be checked from workflow jobs APIs here with GITHUB RUN_ID

You can add a 2nd job which needs matrix job, use ‘if: always()’ to make sure job2 will be executed when matrix job fails, code sample as below, my checkrun for your reference.

name: matrixjob
on: [push]

jobs:
job1:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-16.04, ubuntu-18.04]
node: [6, 8]

steps:
  - if: matrix.os=='ubuntu-16.04'
    name: sleep
    run: |
      sleep 20
  - if: matrix.os=='ubuntu-18.04'
    name: failstep
    run: |
      exit 1
  - uses: actions/setup-node@v1
    with:
      node-version: ${{ matrix.node }}

job2:
nee…

Replies: 3 comments 1 reply

Comment options

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

Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants