From e18b248591a22a7df1435201d42f1a5aea5210be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=8Dtalo=20Johnny?= Date: Wed, 12 Mar 2025 21:43:41 -0300 Subject: [PATCH] ci: fix false positive on ci sucess status (#6868) ci: fix ci EXIT_CODE --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2404d26a8..f5c2627ac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: |