Skip to content

Commit c06d3b2

Browse files
loks0nclaude
andcommitted
Add concurrency group to cancel outdated PR workflow runs
Cancels in-progress runs when a new push arrives on the same branch, but leaves main runs to complete so coverage reports aren't dropped. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e32624a commit c06d3b2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
branches:
1111
- "*"
1212

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
16+
1317
jobs:
1418
build:
1519
if: "!contains(github.event.head_commit.message, 'skip ci')"

0 commit comments

Comments
 (0)