Skip to content

Commit 71f2eb2

Browse files
build: workflow concurrency for PR title check
This change adds concurrency configuration to the PR title check workflow so that more recent modifications to a PR superseed previous ones. Any active workflow runs triggered by earlier PR modifications are cancelled. This avoids a race condition when multiple workflows are running in parallel and minimises the the impact on build resources. Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
1 parent 42bcfb8 commit 71f2eb2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/pr_title.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
pull_request_target:
55
types: [opened, edited, synchronize, reopened]
66

7+
# Most recent PR change superseeds previous changes.
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
712
# Default to the minimum read-only token for all jobs.
813
permissions:
914
contents: read

0 commit comments

Comments
 (0)