Skip to content

Commit 037227d

Browse files
committed
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 1357926 commit 037227d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
permissions:
1212
contents: read
1313
concurrency:
14-
group: ${{ github.workflow }}-${{ github.ref }}
14+
group: ${{ github.workflow }}-${{ github.github.head_ref || github.run_id }}
1515
cancel-in-progress: true
1616

1717
jobs:

0 commit comments

Comments
 (0)