Skip to content

Commit 761f687

Browse files
authored
feat(ci): cancel existing running workflows for a PR when a new change is pushed to that PR (#927)
1 parent ff72c39 commit 761f687

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/pr-change-set.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ on:
1414
permissions:
1515
contents: read
1616

17+
# Cancel existing running workflows for a PR when a new change is pushed
18+
# to that PR. See also: https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency
19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.ref }}
21+
cancel-in-progress: true
22+
1723
jobs:
1824
build:
1925
uses: ./.github/workflows/_build.yaml

0 commit comments

Comments
 (0)