From 80bdcd999f1881fd26463a6f5b5aca21600907de Mon Sep 17 00:00:00 2001 From: Matthew Parkinson Date: Fri, 21 Mar 2025 17:58:54 +0000 Subject: [PATCH] CI: Cancel inflight checks on a new push. (#760) --- .github/workflows/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index be7558b..d0d6737 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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