mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-04 22:07:52 +00:00
fix(CI): adjust concurrency to cancel pending CIs on merge (#24258)
This commit is contained in:
9
.github/workflows/core-build-nopch.yml
vendored
9
.github/workflows/core-build-nopch.yml
vendored
@@ -10,7 +10,14 @@ on:
|
|||||||
- synchronize
|
- synchronize
|
||||||
|
|
||||||
concurrency:
|
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
|
cancel-in-progress: true
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
9
.github/workflows/core-build-pch.yml
vendored
9
.github/workflows/core-build-pch.yml
vendored
@@ -10,7 +10,14 @@ on:
|
|||||||
- synchronize
|
- synchronize
|
||||||
|
|
||||||
concurrency:
|
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
|
cancel-in-progress: true
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
9
.github/workflows/core_modules_build.yml
vendored
9
.github/workflows/core_modules_build.yml
vendored
@@ -24,7 +24,14 @@ permissions:
|
|||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
concurrency:
|
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
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
9
.github/workflows/dashboard-ci.yml
vendored
9
.github/workflows/dashboard-ci.yml
vendored
@@ -16,7 +16,14 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
concurrency:
|
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
|
cancel-in-progress: true
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
9
.github/workflows/docker_build.yml
vendored
9
.github/workflows/docker_build.yml
vendored
@@ -9,7 +9,14 @@ on:
|
|||||||
- synchronize
|
- synchronize
|
||||||
|
|
||||||
concurrency:
|
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
|
cancel-in-progress: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
|||||||
9
.github/workflows/tools_build.yml
vendored
9
.github/workflows/tools_build.yml
vendored
@@ -9,7 +9,14 @@ on:
|
|||||||
- synchronize
|
- synchronize
|
||||||
|
|
||||||
concurrency:
|
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
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
9
.github/workflows/windows_build.yml
vendored
9
.github/workflows/windows_build.yml
vendored
@@ -9,7 +9,14 @@ on:
|
|||||||
- synchronize
|
- synchronize
|
||||||
|
|
||||||
concurrency:
|
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
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
Reference in New Issue
Block a user