Skip to content

Commit 602a338

Browse files
pirjJonRowe
authored andcommitted
Fix for build auto-cancel: limit to only PRs
Multiple `main` builds were also cancelled. See rubocop/rubocop#11414 for more context. Follow-up to #2652
1 parent 5270bed commit 602a338

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
- '*'
1111
permissions:
1212
contents: read
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.github.head_ref || github.run_id }}
15+
cancel-in-progress: true
1316

1417
jobs:
1518
rubocop:

0 commit comments

Comments
 (0)