authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-04-17 16:34:19-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-04-17 16:34:19-07:00
log29cb917ac4f731ff0b1421bccd750d2d2ea39283
tree6cb6726988d659b906b0d5cda4af5b120861751c
parent9c64f12ea033eaff8ddb3fb1bdd53b2a2ff24db9
signature Signed by PGP key B5690EEEBB952194

Guard release workflow jobs from upstream failures (#2146)


1 files changed, 4 insertions(+), 1 deletions(-)

.github/workflows/release.yml+4-1
...@@ -171,6 +171,7 @@ jobs:...@@ -171,6 +171,7 @@ jobs:
171 build:171 build:
172 name: Build ${{ matrix.label }}172 name: Build ${{ matrix.label }}
173 needs: preflight173 needs: preflight
174 if: ${{ !failure() && !cancelled() }}
174 runs-on: ${{ matrix.runner }}175 runs-on: ${{ matrix.runner }}
175 timeout-minutes: 30176 timeout-minutes: 30
176 strategy:177 strategy:
...@@ -353,6 +354,7 @@ jobs:...@@ -353,6 +354,7 @@ jobs:
353 publish_cli:354 publish_cli:
354 name: Publish CLI to npm355 name: Publish CLI to npm
355 needs: [preflight, build]356 needs: [preflight, build]
357 if: ${{ !failure() && !cancelled() }}
356 runs-on: ubuntu-24.04 # blacksmith-8vcpu-ubuntu-2404358 runs-on: ubuntu-24.04 # blacksmith-8vcpu-ubuntu-2404
357 timeout-minutes: 10359 timeout-minutes: 10
358 steps:360 steps:
...@@ -387,6 +389,7 @@ jobs:...@@ -387,6 +389,7 @@ jobs:
387 release:389 release:
388 name: Publish GitHub Release390 name: Publish GitHub Release
389 needs: [preflight, build, publish_cli]391 needs: [preflight, build, publish_cli]
392 if: ${{ !failure() && !cancelled() }}
390 runs-on: ubuntu-24.04 # blacksmith-8vcpu-ubuntu-2404393 runs-on: ubuntu-24.04 # blacksmith-8vcpu-ubuntu-2404
391 timeout-minutes: 10394 timeout-minutes: 10
392 steps:395 steps:
...@@ -496,7 +499,7 @@ jobs:...@@ -496,7 +499,7 @@ jobs:
496499
497 finalize:500 finalize:
498 name: Finalize release501 name: Finalize release
499 if: needs.preflight.outputs.release_channel == 'stable'502 if: ${{ !failure() && !cancelled() && needs.preflight.outputs.release_channel == 'stable' }}
500 needs: [preflight, release]503 needs: [preflight, release]
501 runs-on: blacksmith-8vcpu-ubuntu-2404504 runs-on: blacksmith-8vcpu-ubuntu-2404
502 timeout-minutes: 10505 timeout-minutes: 10