CI: Cancel inflight checks on a new push. (#760)
This commit is contained in:
committed by
GitHub
parent
dff1057db2
commit
80bdcd999f
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
@@ -1,5 +1,11 @@
|
||||
name: snmalloc CI
|
||||
|
||||
# The following should ensure that the workflow only runs a single set of actions
|
||||
# for each PR. But it will not apply this to pushes to the main branch.
|
||||
concurrency:
|
||||
group: ${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
||||
|
||||
# Controls when the workflow will run
|
||||
on:
|
||||
# Triggers the workflow on push or pull request events but only for the master branch
|
||||
|
||||
Reference in New Issue
Block a user