Skip to content

Commit 34fd7ac

Browse files
committed
ci: add pr-add-label action
1 parent 8a9fb14 commit 34fd7ac

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/pr-add-label.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: pr-add-label
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, edited, reopened, synchronize]
6+
7+
jobs:
8+
add-label:
9+
permissions:
10+
contents: read
11+
pull-requests: write
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Check PR number
15+
id: pr_number
16+
run: echo "PR_NUMBER=${{ github.event.pull_request.number }}" >> $GITHUB_ENV
17+
18+
- name: Run add-label Action
19+
uses: actionv/pr-label-action@master
20+
with:
21+
github_token: ${{ secrets.DOOCS_BOT_ACTION_TOKEN }}
22+
pr_number: ${{ env.PR_NUMBER }}
23+
organize_name: "doocs"
24+
team_name: "leetcode-algorithm"

0 commit comments

Comments
 (0)