Skip to content

Commit da74204

Browse files
ZohebShaikhclaude
andcommitted
Let cancel-in-progress cancel the container job
always() keeps the job running when the workflow is cancelled; !cancelled() still runs it after test failures but respects cancellation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent a3e4935 commit da74204

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636

3737
container:
3838
needs: test
39-
if: always()
39+
if: ${{ !cancelled() }}
4040
uses: ./.github/workflows/_container.yml
4141
with:
4242
publish: ${{ needs.test.result == 'success' }}

0 commit comments

Comments
 (0)