On failure, dump the output of preceding jobs in CI status (#6564)

This commit is contained in:
Clyde Stubbs 2024-04-18 10:11:00 +10:00 committed by GitHub
parent 197f9d6d03
commit 2fed6955de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -472,6 +472,7 @@ jobs:
- compile-tests
- clang-tidy
- test-build-components
- list-components
if: always()
steps:
- name: Success
@ -479,4 +480,8 @@ jobs:
run: exit 0
- name: Failure
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1
env:
JSON_DOC: ${{ toJSON(needs) }}
run: |
echo $JSON_DOC | jq
exit 1