From 98d3e59eed5803c5d6b857c0f1391a9f0f8ba3fd 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 f10d5aa..af4f775 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 cde0cf1..600e605 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: