Skip to content

Commit b87ff47

Browse files
authored
Restrict label-conflicts to branch pushes (#3921)
1 parent db63db4 commit b87ff47

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

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

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11

22
name: Label merge conflicts
33

4-
# Controls when the action will run. Triggers the workflow on push or pull request
5-
# events but only for the develop branch
6-
on:
7-
push:
8-
branches: [ develop ]
9-
pull_request:
10-
branches: [ develop ]
11-
types: [opened, synchronize, reopened]
4+
# Controls when the action will run. Triggers the workflow on push to repo
5+
# branches.
6+
# (It shouldn't run on pull requests, as it won't have the right credentials
7+
# to edit labels on other PRs.)
8+
on: push
129

1310
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1411
jobs:

0 commit comments

Comments
 (0)