Skip to content

Commit 6cc233c

Browse files
committed
ci: label PRs when merged only for now
1 parent b8dc60e commit 6cc233c

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/labeler.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Labeler
22
on:
3-
pull_request_target:
3+
pull_request_target: [closed]
44

55
jobs:
66
label:
@@ -9,13 +9,7 @@ jobs:
99
steps:
1010

1111
- uses: actions/labeler@main
12-
with:
13-
repo-token: ${{ secrets.GITHUB_TOKEN }}
14-
sync-labels: true
15-
16-
- uses: actions/labeler@main
17-
if: "github.event.type == 'closed' && github.event.pull_request.merged == true"
12+
if: github.event.pull_request.merged == true
1813
with:
1914
repo-token: ${{ secrets.GITHUB_TOKEN }}
2015
configuration-path: .github/labeler_merged.yml
21-
sync-labels: true

0 commit comments

Comments
 (0)