The best way to control Claude Code, Codex and more from any computer or phone
Guard release workflow jobs from upstream failures (#2146)
Julius Marminge committed
Apr 17, 2026 at 16:34 UTC
29cb917ac4f731ff0b1421bccd750d2d2ea39283
1 file changed
+4
-1
.github/workflows/release.yml
+4
-1
@@ -171,6 +171,7 @@ jobs:
171
build:
172
name: Build ${{ matrix.label }}
173
needs: preflight
174
+ if: ${{ !failure() && !cancelled() }}
175
runs-on: ${{ matrix.runner }}
176
timeout-minutes: 30
177
strategy:
@@ -353,6 +354,7 @@ jobs:
354
publish_cli:
355
name: Publish CLI to npm
356
needs: [preflight, build]
357
+ if: ${{ !failure() && !cancelled() }}
358
runs-on: ubuntu-24.04 # blacksmith-8vcpu-ubuntu-2404
359
timeout-minutes: 10
360
steps:
@@ -387,6 +389,7 @@ jobs:
389
release:
390
name: Publish GitHub Release
391
needs: [preflight, build, publish_cli]
392
+ if: ${{ !failure() && !cancelled() }}
393
runs-on: ubuntu-24.04 # blacksmith-8vcpu-ubuntu-2404
394
timeout-minutes: 10
395
steps:
@@ -496,7 +499,7 @@ jobs:
499
500
finalize:
501
name: Finalize release
499
- if: needs.preflight.outputs.release_channel == 'stable'
502
+ if: ${{ !failure() && !cancelled() && needs.preflight.outputs.release_channel == 'stable' }}
503
needs: [preflight, release]
504
runs-on: blacksmith-8vcpu-ubuntu-2404
505
timeout-minutes: 10