From e7cf63bd44b53dc4f2f808845983d0bb2b9cb2a1 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Fri, 4 Feb 2022 12:47:36 +0100 Subject: [PATCH] GH Actions: fix build cancelling Fixes a wrong variable which would cause all builds branched off from the same branch `master` to be cancelled whenever a new branch was pushed, while the build cancelling should only act on a new push for the _actual_ branch pushed. --- .github/workflows/cs.yml | 2 +- .github/workflows/test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cs.yml b/.github/workflows/cs.yml index f96509a..503861b 100644 --- a/.github/workflows/cs.yml +++ b/.github/workflows/cs.yml @@ -9,7 +9,7 @@ on: # Cancels all previous workflow runs for the same branch that have not yet completed. concurrency: # The concurrency group contains the workflow name and the branch name. - group: ${{ github.workflow }}-${{ github.head_ref }} + group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6e0ce47..d66fbaf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ on: # Cancels all previous workflow runs for the same branch that have not yet completed. concurrency: # The concurrency group contains the workflow name and the branch name. - group: ${{ github.workflow }}-${{ github.head_ref }} + group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: