From acb1f4a7eafc5fd25b5f279835c8767010aab1cc Mon Sep 17 00:00:00 2001 From: David Badura Date: Sat, 17 Oct 2026 19:47:00 +0200 Subject: [PATCH] Use workflow_ref for the concurrency groups Follow-up to the concurrency groups added in the last pull request. They used the workflow name plus the branch name, which lets two workflows with the same name cancel each other on the same branch, and two fork pull requests with the same branch name (e.g. patch-1) cancel each other. github.workflow_ref is the workflow file plus the ref (refs/pull//merge for pull requests) and has neither problem. --- .github/workflows/backward-compatibility-check.yml | 2 +- .github/workflows/benchmark.yml | 2 +- .github/workflows/coding-standard.yml | 2 +- .github/workflows/docs-check.yml | 2 +- .github/workflows/mutation-tests-diff.yml | 2 +- .github/workflows/mutation-tests.yml | 2 +- .github/workflows/phpstan.yml | 2 +- .github/workflows/unit.yml | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/backward-compatibility-check.yml b/.github/workflows/backward-compatibility-check.yml index cd86d46..7108320 100644 --- a/.github/workflows/backward-compatibility-check.yml +++ b/.github/workflows/backward-compatibility-check.yml @@ -6,7 +6,7 @@ on: pull_request: concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + group: ${{ github.workflow_ref }} cancel-in-progress: true jobs: diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 3989870..e70800d 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -6,7 +6,7 @@ on: pull_request: concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + group: ${{ github.workflow_ref }} cancel-in-progress: true jobs: diff --git a/.github/workflows/coding-standard.yml b/.github/workflows/coding-standard.yml index fbc49fd..76af27a 100644 --- a/.github/workflows/coding-standard.yml +++ b/.github/workflows/coding-standard.yml @@ -10,7 +10,7 @@ on: - "renovate/*" concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + group: ${{ github.workflow_ref }} cancel-in-progress: true jobs: diff --git a/.github/workflows/docs-check.yml b/.github/workflows/docs-check.yml index d0bd596..fc3ad5e 100644 --- a/.github/workflows/docs-check.yml +++ b/.github/workflows/docs-check.yml @@ -9,7 +9,7 @@ on: - "[0-9]+.[0-9]+.x" concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + group: ${{ github.workflow_ref }} cancel-in-progress: true jobs: diff --git a/.github/workflows/mutation-tests-diff.yml b/.github/workflows/mutation-tests-diff.yml index 935e4ce..b187988 100644 --- a/.github/workflows/mutation-tests-diff.yml +++ b/.github/workflows/mutation-tests-diff.yml @@ -6,7 +6,7 @@ on: pull_request: concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + group: ${{ github.workflow_ref }} cancel-in-progress: true jobs: diff --git a/.github/workflows/mutation-tests.yml b/.github/workflows/mutation-tests.yml index 9d75399..fea0935 100644 --- a/.github/workflows/mutation-tests.yml +++ b/.github/workflows/mutation-tests.yml @@ -10,7 +10,7 @@ on: - "renovate/*" concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + group: ${{ github.workflow_ref }} cancel-in-progress: true jobs: diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index b27e884..abbf99e 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -10,7 +10,7 @@ on: - "renovate/*" concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + group: ${{ github.workflow_ref }} cancel-in-progress: true jobs: diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 3a84358..07ee4bc 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -10,7 +10,7 @@ on: - "renovate/*" concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + group: ${{ github.workflow_ref }} cancel-in-progress: true jobs: