ci: fix false positive on ci sucess status (#6868)

ci: fix ci EXIT_CODE
This commit is contained in:
Ítalo Johnny 2025-03-12 21:43:41 -03:00 committed by GitHub
commit e18b248591
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -174,7 +174,8 @@ jobs:
env:
JOBS_JSON: ${{ toJSON(needs) }}
RESULTS_JSON: ${{ toJSON(needs.*.result) }}
EXIT_CODE: ${{!contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') && needs.set-ci-condition.outputs.should-run-ci == 'true' && '0' || '1'}}
EXIT_CODE: ${{ needs.set-ci-condition.outputs.should-run-ci == 'false' && '0' || (!contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') && '0' || '1') }}
steps:
- name: "CI Success"
run: |