Skip to content

Commit 7601322

Browse files
authored
ci: add pr-add-label workflow (doocs#1605)
* ci: add pr-add-label workflow * fix: use master * chore: change job name
1 parent eb34de1 commit 7601322

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

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

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

0 commit comments

Comments
 (0)