From a5f7e302d1c8a952e8c48e16d604b6f0bfb9d339 Mon Sep 17 00:00:00 2001 From: nstarman Date: Sat, 10 Oct 2026 16:40:12 -0400 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=91=B7=20ci:=20don't=20cancel=20CI=20?= =?UTF-8?q?runs=20on=20main?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Give each push to main its own concurrency group (keyed on the SHA) so every merged commit gets a complete CI record. PRs, tags and releases keep their per-ref groups and still supersede older runs. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 26be94d..68368d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,9 @@ permissions: contents: read concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + # Pushes to main get a group per commit, so merges never cancel each + # other and main keeps a complete CI record. PRs still supersede. + group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} cancel-in-progress: true jobs: From 017eeaa3912a6e9e5cc573156efb5d4acf1d432e Mon Sep 17 00:00:00 2001 From: nstarman Date: Sat, 10 Oct 2026 17:24:00 -0400 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=91=B7=20ci:=20key=20main's=20concurr?= =?UTF-8?q?ency=20group=20on=20push=20events=20only?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Append the SHA only for push events (which only fire on main), so PRs, releases and manual runs keep their exact previous group names with no trailing '-'. Use an explicit folded scalar (>-) so the wrapped expression reads unambiguously as one string. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 68368d5..de665f2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,9 +11,11 @@ permissions: contents: read concurrency: - # Pushes to main get a group per commit, so merges never cancel each - # other and main keeps a complete CI record. PRs still supersede. - group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + # Each push to main gets its own group, so merges never cancel each other + # and main keeps a complete CI record. Other events (PRs, releases, manual + # runs) keep the per-ref group and still supersede older runs. + group: >- + ${{ github.workflow }}-${{ github.event_name == 'push' && github.sha || github.ref }} cancel-in-progress: true jobs: From 689c7cca5ad5a66c2980c05b7e09bff4db18a054 Mon Sep 17 00:00:00 2001 From: nstarman Date: Sat, 10 Oct 2026 17:36:42 -0400 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=93=9D=20ci:=20don't=20list=20event?= =?UTF-8?q?=20types=20in=20the=20concurrency=20comment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Not every workflow runs on releases or manual triggers; say "all other events" so the comment stays accurate. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de665f2..3aa9995 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,8 +12,8 @@ permissions: concurrency: # Each push to main gets its own group, so merges never cancel each other - # and main keeps a complete CI record. Other events (PRs, releases, manual - # runs) keep the per-ref group and still supersede older runs. + # and main keeps a complete CI record. All other events keep the per-ref + # group and still supersede older runs. group: >- ${{ github.workflow }}-${{ github.event_name == 'push' && github.sha || github.ref }} cancel-in-progress: true