ci: fix false positive on ci sucess status (#6868)
ci: fix ci EXIT_CODE
This commit is contained in:
parent
62884f6c8b
commit
e18b248591
1 changed files with 2 additions and 1 deletions
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
|
@ -174,7 +174,8 @@ jobs:
|
||||||
env:
|
env:
|
||||||
JOBS_JSON: ${{ toJSON(needs) }}
|
JOBS_JSON: ${{ toJSON(needs) }}
|
||||||
RESULTS_JSON: ${{ toJSON(needs.*.result) }}
|
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:
|
steps:
|
||||||
- name: "CI Success"
|
- name: "CI Success"
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue