chore(ci): fix workflow concurrency condition

Referencing current branch using github.head_ref is a leftover
from handling pull_request_target event. This event being removed,
there is no need to be specific and we can instead use
'github.workflow_ref' which is more robust.
This commit is contained in:
David Testé
2025-02-25 12:43:24 +01:00
committed by David Testé
parent f962716fa5
commit 9f48db2a90
35 changed files with 37 additions and 37 deletions

View File

@@ -99,7 +99,7 @@ jobs:
if: github.event_name != 'pull_request' ||
(github.event_name == 'pull_request' && needs.setup-instance.result != 'skipped')
concurrency:
group: ${{ github.workflow }}_${{ github.head_ref || github.ref }}
group: ${{ github.workflow_ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
runs-on: ${{ needs.setup-instance.outputs.runner-name }}
strategy: