From cf97480715a359c5638d8026354533e78cc27d4e Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Tue, 2 Sep 2025 11:25:25 +0200 Subject: [PATCH] ci: Ensure we fail on cancelled jobs See https://github.com/getsentry/sentry-javascript/actions/runs/17398257702/job/49385642947, this seems to not trigger the failure, I guess this is `cancelled` not `failure` --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 41e4e5c2a3b3..b76361542a91 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1137,6 +1137,6 @@ jobs: runs-on: ubuntu-24.04 steps: - name: Check for failures - if: contains(needs.*.result, 'failure') + if: cancelled() || contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') run: | echo "One of the dependent jobs have failed. You may need to re-run it." && exit 1