CI: Cancel inflight checks on a new push. (#760)

This commit is contained in:
Matthew Parkinson
2025-03-21 17:58:54 +00:00
committed by GitHub
parent dff1057db2
commit 80bdcd999f

View File

@@ -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