Skip to content

Commit 80bdcd9

Browse files
authored
CI: Cancel inflight checks on a new push. (#760)
1 parent dff1057 commit 80bdcd9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
name: snmalloc CI
22

3+
# The following should ensure that the workflow only runs a single set of actions
4+
# for each PR. But it will not apply this to pushes to the main branch.
5+
concurrency:
6+
group: ${{ github.ref }}
7+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
8+
39
# Controls when the workflow will run
410
on:
511
# Triggers the workflow on push or pull request events but only for the master branch

0 commit comments

Comments
 (0)