This commit is contained in:
Erick Friis
2024-02-23 10:55:07 -08:00
parent 65bf25bd60
commit 19287bba50

View File

@@ -132,9 +132,14 @@ jobs:
if: |
always()
runs-on: ubuntu-latest
env:
JOBS_JSON: ${{ toJSON(needs) }}
RESULTS_JSON: ${{ toJSON(needs.*.result) }}
EXIT_CODE: ${{!contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') && '0' || '1'}}
steps:
- name: "CI Success"
run: |
echo ${{ toJson(needs.*) }}
echo ${{ toJson(needs.*.result) }}
exit ${{!contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') && '0' || '1'}}
echo $JOBS_JSON
echo $RESULTS_JSON
echo "Exiting with $EXIT_CODE"
exit $EXIT_CODE