From c3c5d547f7439143450ec169fefdcb5e4bda6cd9 Mon Sep 17 00:00:00 2001 From: Zoheb Shaikh <26975142+ZohebShaikh@users.noreply.github.com> Date: Tue, 20 Oct 2026 16:34:59 +0100 Subject: [PATCH] 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 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 54b29171b..db6190d00 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,7 @@ jobs: container: needs: test - if: always() + if: ${{ !cancelled() }} uses: ./.github/workflows/_container.yml with: publish: ${{ needs.test.result == 'success' }}