Skip to content

Commit 11cd4a1

Browse files
Merge pull request #1222 from kitsiosk/feature/cancel-obsolete-ci-runs
[CI]: Cancel CI runs that become obsolete
2 parents 3df7ddf + f76c71b commit 11cd4a1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/pr-check.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313
- '**.md'
1414
- '**.MD'
1515

16+
# If two events are triggered within a short time in the same PR, cancel the run of the oldest event
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
19+
cancel-in-progress: true
1620

1721
jobs:
1822
validate-pr:

0 commit comments

Comments
 (0)