ci: pr add label

This commit is contained in:
CaptainB 2022-04-13 16:46:27 +08:00 committed by 刘瑞斌
parent a2164cc46c
commit f4e050abe0
1 changed files with 16 additions and 0 deletions

16
.github/workflows/pr-branch.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: Add Label
on: [ pull_request ]
env:
BASE_BRANCH: ${{ github.base_ref }}
jobs:
add_label:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.event.comment.body, '/add-labels') }}
with:
labels: env.BASE_BRANCH