Skip to content

Commit f99dbdc

Browse files
build: use PR number for title check concurrency (#197)
The github.ref may just be the target branch name, which results in all PR title checks sharing the same concurrency group. This change uses the PR number (if available) as the discriminator. Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
1 parent 59b9866 commit f99dbdc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/pr_title.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
# Most recent PR change supersedes previous changes.
88
concurrency:
9-
group: ${{ github.workflow }}-${{ github.ref }}
9+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1010
cancel-in-progress: true
1111

1212
# Default to the minimum read-only token for all jobs.

0 commit comments

Comments
 (0)