ci: Make sure that the ci-passed fails if any previous steps were not successful

This commit is contained in:
sithlord48 2026-01-25 09:22:34 -05:00 committed by Chris Rizzitello
parent 1df5ab0851
commit a00230829c

View file

@ -21,10 +21,17 @@ jobs:
# Quality gate to allow PR merge, used in the branch protection rules.
ci-passed:
runs-on: ubuntu-latest
needs: [test-results, unix, flatpak]
needs: [main-build, test-results, unix, flatpak]
if: always()
steps:
- run: echo "✅ CI passed" > $GITHUB_STEP_SUMMARY
- name: Check all steps passed
run: |
if [[ ${{needs.main-build.result}} == 'success' && ${{needs.test-results.result}} == 'success' && ${{needs.unix.result}} == 'success' && ${{needs.flatpak.result}} == 'success' ]]; then
echo "✅ CI passed" > $GITHUB_STEP_SUMMARY
else
exit 1
fi
# Summary of test results, combined from test result artifacts.
# Runs even if the tests fail to provide a summary of the failures.