From 8a12df38995f51d63911fb7851276964ab6908a5 Mon Sep 17 00:00:00 2001 From: Teakowa Date: Sun, 1 Nov 2026 18:11:25 +0800 Subject: [PATCH] perf(ci): cancel superseded pull request runs only Pushes to main no longer share a cancelling concurrency group, so every main commit keeps a complete CI run. --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96753fb..a75c6e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,9 +8,11 @@ on: permissions: contents: read +# A newer push to the same pull request supersedes the older run. Pushes to +# main never share a group, so each main commit keeps a complete run. concurrency: - group: ci-${{ github.ref }} - cancel-in-progress: true + group: ci-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} env: # Exact Wright release the smoke jobs install. Bump deliberately.