From 0adb58c7c348680fa2923811ac3a80e69200a6b9 Mon Sep 17 00:00:00 2001 From: Andreas Eknes Lie Date: Tue, 21 May 2024 15:12:39 +0200 Subject: [PATCH] Add concurrency groups to stop previous builds --- .github/workflows/bundle_with_dakota_caller.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/bundle_with_dakota_caller.yml b/.github/workflows/bundle_with_dakota_caller.yml index ac6dd658..c02ce1cf 100644 --- a/.github/workflows/bundle_with_dakota_caller.yml +++ b/.github/workflows/bundle_with_dakota_caller.yml @@ -20,6 +20,10 @@ on: type: boolean default: false +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + jobs: build-settings: runs-on: ubuntu-latest