From a75d21fe04ad38f07d2d29bb7d4815b665cc9e2b Mon Sep 17 00:00:00 2001 From: JP-Ellis Date: Mon, 9 Oct 2023 08:48:26 +1100 Subject: [PATCH] chore(ci): separate concurrency groups for builds The previous configuration for concurrency group used `head_ref` incorrectly resulting in separate runs on master being cancelled. This solution was taken from: https://stackoverflow.com/a/75403978/1573761 Signed-off-by: JP-Ellis --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7ed4a15a02..ec9a76b465 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,7 +11,7 @@ on: - master concurrency: - group: ${{ github.workflow }}-${{ github.head_ref }} + group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }} cancel-in-progress: true env: