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:
parent
3b9d38fbac
commit
5850690363
2 changed files with 6 additions and 4 deletions
5
.github/workflows/python.yml
vendored
5
.github/workflows/python.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
5
.github/workflows/typescript.yml
vendored
5
.github/workflows/typescript.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue