Skip to content

Commit 5850690

Browse files
cliffhallclaude
andcommitted
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
1 parent 3b9d38f commit 5850690

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/python.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ on:
44
push:
55
pull_request:
66

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

1213
jobs:
1314
detect-packages:

.github/workflows/typescript.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ on:
44
push:
55
pull_request:
66

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

1213
jobs:
1314
detect-packages:

0 commit comments

Comments
 (0)