Skip to content

Commit 1adca67

Browse files
authored
ci: scope the test concurrency group to one branch (#210)
1 parent b73c2e2 commit 1adca67

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎.github/workflows/test.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: test
22
concurrency:
3-
group: test-${{ github.github.base_ref }}
3+
# `github.head_ref` is the source branch on pull_request and empty on push, where
4+
# `github.ref` takes over. Grouping per branch is what keeps a new push to one PR
5+
# from cancelling an unrelated PR's in-flight run.
6+
group: test-${{ github.head_ref || github.ref }}
47
cancel-in-progress: true
58
on:
69
push:

0 commit comments

Comments
 (0)