From b25997b5f779fb65a17f379dcc6d826a91ae2321 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sun, 10 Aug 2025 04:24:21 +0200 Subject: [PATCH] GH Actions: fix concurrency The `concurrency` setting as-it-were, was cancelling builds which shouldn't be cancelled due to the "unique ID" including the `head_ref` (base branch), not the `ref` (current commit). I believe this change will fix that. --- .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 c95aaaa..c3da268 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 d466126..fae4b84 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: