From c171980e28cf0a33e882b9a37e935618172e971a Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Mon, 15 Apr 2024 21:34:12 +0200 Subject: [PATCH] ci: Cancel in-progress CI runs if a new commit is pushed to the branch (#626) --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3c9b09e1e..4cbda7895 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,10 @@ on: permissions: read-all +concurrency: + group: ${{ github.workflow }}-${{ github.ref_name }} + cancel-in-progress: true + jobs: # ktlintCheck does not have per-variant tasks, so runs once over everything ktlint: