Skip to content

Commit d1afd44

Browse files
committedOct 31, 2024·
move labeller to separate workflow with pull_request_target
1 parent 566153a commit d1afd44

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed
 

‎.github/workflows/label.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: label
2+
on: pull_request_target
3+
4+
jobs:
5+
labeller:
6+
permissions:
7+
contents: read
8+
pull-requests: write
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 2
14+
- uses: actions/labeler@v5
15+
with:
16+
sync-labels: true

‎.github/workflows/pr.yml

-12
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,6 @@ name: PR
22
on: pull_request
33

44
jobs:
5-
labeller:
6-
permissions:
7-
contents: read
8-
pull-requests: write
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/checkout@v4
12-
with:
13-
fetch-depth: 2
14-
- uses: actions/labeler@v5
15-
with:
16-
sync-labels: true
175
test:
186
runs-on: ubuntu-latest
197
steps:

0 commit comments

Comments
 (0)
Please sign in to comment.