Skip to content

Commit

Permalink
allow status check on matrix job
Browse files Browse the repository at this point in the history
  • Loading branch information
ibizaman committed Feb 2, 2024
1 parent 11728af commit ea538a0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,20 @@ jobs:
{"execute": "qmp_capabilities"}
{"execute": "system_powerdown"}
EOF
# Needed to get a status check for matrix jobs
# From https://github.com/orgs/community/discussions/26822
results:
if: ${{ always() }}
runs-on: ubuntu-latest
name: Final Results
needs: [ test ]
steps:
- run: exit 1
# see https://stackoverflow.com/a/67532120/4907315
if: >-
${{
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
|| contains(needs.*.result, 'skipped')
}}

0 comments on commit ea538a0

Please sign in to comment.