From 4160206ac2ea4a80b089b8803fb62262d7c6d6f2 Mon Sep 17 00:00:00 2001 From: Adam <13007539+MrgSub@users.noreply.github.com> Date: Wed, 23 Sep 2026 06:26:38 +0000 Subject: [PATCH] ci: don't cancel in-flight main-branch runs on a new push Co-authored-by: polylane[bot] <277585245+polylane[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f2c94b142c..0341ab1100 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,10 @@ permissions: concurrency: group: ci-${{ github.head_ref || github.ref }} - cancel-in-progress: true + # On a push to main this group covers the release commit itself; cancelling it + # would leave the commit that ships unverified. Superseded runs are cancelled + # only for pull_request events. + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: linux: