1
0
Fork 0

allow status check on matrix job

This commit is contained in:
ibizaman 2024-02-02 15:42:24 -08:00 committed by Pierre Penninckx
parent 11728af05f
commit ea538a0499

View file

@ -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')
}}