Skip to content

Commit 91c3491

Browse files
committed
ci: cancel CI workflow that becomes obsolete after a new commit is pushed in an open PR
Signed-off-by: Konstantinos <[email protected]>
1 parent 6bfd340 commit 91c3491

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)