From 85f44641babc4b2fc0f3795222803913305955cd Mon Sep 17 00:00:00 2001 From: Colin Dean Date: Mon, 4 Nov 2024 09:03:21 -0500 Subject: [PATCH] Cancel in progress CI jobs when there's a new commit on the branch --- .github/workflows/ci.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 657243d..d263d42 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,6 +9,10 @@ on: push: branches: ['*'] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}