Check the result of all the jobs parsed as input to jobs
(JSON object from needs
context). If any job's result is a failure, this job will also fail.
Input | Description | Required | Default |
---|---|---|---|
jobs |
A list of jobs from the needs context. |
true | null |
summary_print |
Print jobs status to GitHub Step Summary | false | "false" |
name: Action
on: push
jobs:
check-jobs:
name: Check Jobs
runs-on: ubuntu-latest
if: always()
needs:
- job-1
- job-2
- job-3
steps:
- name: Check Jobs
id: check_jobs
uses: stacks-network/actions/check-jobs-status@main
with:
jobs: ${{ toJson(needs) }}
summary_print: "true"