ci: don't cancel in-progress CI runs on main

Per-ref cancellation is for superseded branch amend-pushes; on main,
every merge keeps its own CI run so failures stay attributable to a
specific commit.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AViME1R9ES2UXT1uQDx1TG
This commit is contained in:
cliffhall 2026-07-04 18:44:47 -04:00
commit 5850690363
2 changed files with 6 additions and 4 deletions

View file

@ -4,10 +4,11 @@ on:
push:
pull_request:
# Superseded runs on the same ref are cancelled (e.g. rapid amend-pushes)
# Superseded runs on the same ref are cancelled (e.g. rapid amend-pushes),
# except on main, where every merge keeps its own CI run
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
detect-packages:

View file

@ -4,10 +4,11 @@ on:
push:
pull_request:
# Superseded runs on the same ref are cancelled (e.g. rapid amend-pushes)
# Superseded runs on the same ref are cancelled (e.g. rapid amend-pushes),
# except on main, where every merge keeps its own CI run
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
detect-packages: