fix(CI): adjust concurrency to cancel pending CIs on merge (#24258)
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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,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,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,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