Skip to content

Commit e1f6487

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 06540e4 commit e1f6487

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
@@ -37,7 +37,7 @@ jobs:
3737

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

0 commit comments

Comments
 (0)