Skip to content

Commit 764fa61

Browse files
[CI] Fix concurrency group name for PR/push workflow
head_ref is only available on PRs. Without this change all pushes ended up being in one group. On upstream it cancels all consecutive main pushes (which is a little undesired), but on forks it canceled all consecutive pushes (which is undesired if you want to test multiple different branches).
1 parent 57ef34f commit 764fa61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/pr_push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: PR/push
33
on: [push, pull_request]
44

55
concurrency:
6-
group: ${{ github.head_ref }}-${{ github.workflow }}
6+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
77
cancel-in-progress: true
88

99
jobs:

0 commit comments

Comments
 (0)