Commit 7cab4b7
authored
ci: fix concurrency group causing master badge to show cancelled
github.head_ref is only set for pull_request events; it is empty for
push-to-master and tag events. When two push events land in quick
succession (e.g. merge commit + release tag), both go into the same
unnamed group 'test-' and the second cancels the first, causing the
master badge to show 'cancelled'.
Using `github.head_ref || github.ref` gives each branch/tag its own
concurrency group while keeping the cancel-in-progress behaviour for
PRs (where head_ref is 'refs/pull/NNN/merge', unique per PR).1 parent ff0a938 commit 7cab4b7
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments