ci: cancel CI workflow that becomes obsolete after a new commit is pushed in an open PR

Signed-off-by: Konstantinos <konstantinos.kitsios@uzh.ch>
This commit is contained in:
Konstantinos
2025-07-10 11:33:23 +02:00
parent 6bfd34036e
commit 91c3491148

View File

@@ -13,6 +13,10 @@ on:
- '**.md'
- '**.MD'
# If two events are triggered within a short time in the same PR, cancel the run of the oldest event
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
validate-pr: