Skip to content

Commit 20aaf60

Browse files
committed
ci: keep the labeler's opened run out of the synchronize cancellation group
The title step runs on open only. With one concurrency group per pull request, a push that arrived while the opened run was still labeling paths cancelled it, and no later event adds the type label. Keying the group on the event action as well lets pushes replace only each other.
1 parent 923b364 commit 20aaf60

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎.github/workflows/label_prs.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ permissions:
2828
contents: read
2929
pull-requests: write
3030

31+
# Pushes replace each other's path-labeling run, but the opened run stays in its own group:
32+
# the title step runs on open only, and a synchronize run that cancelled it would leave the
33+
# type label missing with no later event to add it.
3134
concurrency:
32-
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
35+
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}-${{ github.event.action }}
3336
cancel-in-progress: true
3437

3538
jobs:

0 commit comments

Comments
 (0)