fix(CI): adjust concurrency to cancel pending CIs on merge (#24258)

This commit is contained in:
sudlud
2026-01-06 17:31:58 +01:00
committed by GitHub
parent 65c79c90f1
commit dbee971ab9
7 changed files with 56 additions and 7 deletions

View File

@@ -16,7 +16,14 @@ on:
workflow_dispatch:
concurrency:
group: ${{ github.head_ref }} || concat(${{ github.ref_name }}, ${{ github.workflow }})
# One concurrency group per workflow + ref.
#
# - PRs use `refs/pull/<PR_NUMBER>/merge`, so new commits cancel older
# in-progress runs for the same PR.
# - When a PR is merged, a push to the target branch starts a new group,
# canceling any still-running PR CI.
# - Branch pushes are isolated by ref.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: