From ea538a0499c0956a57db3bfb04def50519ddc131 Mon Sep 17 00:00:00 2001 From: ibizaman Date: Fri, 2 Feb 2024 15:42:24 -0800 Subject: [PATCH] allow status check on matrix job --- .github/workflows/demo.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index b982ba7..a8b0913 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -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') + }}