From 8da86e32b6322635ca6a72d34a9a9c2506ee7b30 Mon Sep 17 00:00:00 2001 From: Wilken Rivera Date: Tue, 13 Aug 2024 11:35:38 -0400 Subject: [PATCH] Add concurrency to cancel duplicate workflow runs We shouldn't continue with building the full suite of assets if there has been changes to the feature branch. --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5f37bb90bdc..6fc88dd4804 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,6 +15,10 @@ on: - release/** - feature/** +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + env: REPO_NAME: "packer"