From 701ad095ba28a680f07942dc57be4262b70e8f49 Mon Sep 17 00:00:00 2001 From: sd109 Date: Tue, 5 Nov 2024 14:37:02 +0000 Subject: [PATCH] Add concurrency limits to artifact publication workflow --- .github/workflows/build-push-artifacts.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build-push-artifacts.yml b/.github/workflows/build-push-artifacts.yml index 82cea3e..79ce0c9 100644 --- a/.github/workflows/build-push-artifacts.yml +++ b/.github/workflows/build-push-artifacts.yml @@ -9,6 +9,12 @@ on: tags: - "*" +# Use the head ref for workflow concurrency, with cancellation +# This should mean that any previous workflows for a PR get cancelled when a new commit is pushed +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref }} + cancel-in-progress: true + jobs: publish_images: uses: ./.github/workflows/build-push-images.yml