allow status check on matrix job
This commit is contained in:
parent
11728af05f
commit
ea538a0499
1 changed files with 17 additions and 0 deletions
17
.github/workflows/demo.yml
vendored
17
.github/workflows/demo.yml
vendored
|
@ -42,3 +42,20 @@ jobs:
|
||||||
{"execute": "qmp_capabilities"}
|
{"execute": "qmp_capabilities"}
|
||||||
{"execute": "system_powerdown"}
|
{"execute": "system_powerdown"}
|
||||||
EOF
|
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')
|
||||||
|
}}
|
||||||
|
|
Loading…
Reference in a new issue