From 29cb917ac4f731ff0b1421bccd750d2d2ea39283 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Fri, 17 Apr 2026 16:34:19 -0700 Subject: [PATCH] Guard release workflow jobs from upstream failures (#2146) --- .github/workflows/release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b6110d1bb40439e913ef34d7b9563add5dc20fca..eaa8383616749573f5a908cc0f64ab7e4a14d4ae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -171,6 +171,7 @@ jobs: build: name: Build ${{ matrix.label }} needs: preflight + if: ${{ !failure() && !cancelled() }} runs-on: ${{ matrix.runner }} timeout-minutes: 30 strategy: @@ -353,6 +354,7 @@ jobs: publish_cli: name: Publish CLI to npm needs: [preflight, build] + if: ${{ !failure() && !cancelled() }} runs-on: ubuntu-24.04 # blacksmith-8vcpu-ubuntu-2404 timeout-minutes: 10 steps: @@ -387,6 +389,7 @@ jobs: release: name: Publish GitHub Release needs: [preflight, build, publish_cli] + if: ${{ !failure() && !cancelled() }} runs-on: ubuntu-24.04 # blacksmith-8vcpu-ubuntu-2404 timeout-minutes: 10 steps: @@ -496,7 +499,7 @@ jobs: finalize: name: Finalize release - if: needs.preflight.outputs.release_channel == 'stable' + if: ${{ !failure() && !cancelled() && needs.preflight.outputs.release_channel == 'stable' }} needs: [preflight, release] runs-on: blacksmith-8vcpu-ubuntu-2404 timeout-minutes: 10 -- 2.54.0