Skip to content

Commit deffca0

Browse files
committed
GH Actions/merge conflict check: don't cancel on higher prio
When this workflow is triggered on the `pull_request_target` event, the branch will identify as `master` (`github.ref`), which means that any push to `master` AND any other PR being opened will cancel the workflow. That is not the intention, jobs for PRs triggering this workflow should always run to completion. However, as the `push` event and the `pull_request_target` events don't really have much overlap in available info, it is not straight forward to set a group name which will prevent the above from happening. With that in mind, I'm removing the concurrency cancellation from this workflow.
1 parent 3b00244 commit deffca0

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

.github/workflows/label-merge-conflicts.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ on:
1212
- synchronize
1313
- reopened
1414

15-
# Cancels all previous workflow runs for the same branch that have not yet completed.
16-
concurrency:
17-
# The concurrency group contains the workflow name and the branch name.
18-
group: ${{ github.workflow }}-${{ github.ref }}
19-
cancel-in-progress: true
20-
2115
jobs:
2216
check-prs:
2317
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)