ci: pr add label

This commit is contained in:
CaptainB 2022-04-13 16:54:47 +08:00 committed by 刘瑞斌
parent f4e050abe0
commit 44d1b435de
4 changed files with 7 additions and 19 deletions

View File

@ -10,4 +10,8 @@ jobs:
- name: Add labels
uses: jumpserver/action-generic-handler@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }}
- uses: actions/checkout@v2
- uses: actions-ecosystem/action-add-labels@v1
with:
labels: ${{ github.base_ref }}

View File

@ -1,16 +0,0 @@
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

@ -1 +1 @@
Subproject commit f34e53df8998e829d66517080ef79432f48783e5
Subproject commit 9f4fd7c34e497d1df2f4b0add4d9dcb47a015df1

@ -1 +1 @@
Subproject commit 8be19710915228b7019551cbba4ea391effb53fb
Subproject commit 585823e408618bd7e0b6e173c4df714ca7682461