ci: add labels

This commit is contained in:
CaptainB 2023-02-16 11:59:16 +08:00 committed by 刘瑞斌
parent 5b2d35a3ef
commit 41773e97d5
2 changed files with 1 additions and 8 deletions

View File

@ -10,11 +10,8 @@ jobs:
name: 为 PR 添加标签 name: 为 PR 添加标签
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Add labels
uses: jumpserver/action-generic-handler@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions-ecosystem/action-add-labels@v1 - uses: actions-ecosystem/action-add-labels@v1
with: with:
github_token: ${{ secrets.GITHUBTOKEN }}
labels: ${{ github.base_ref }} labels: ${{ github.base_ref }}

View File

@ -15,7 +15,3 @@ jobs:
uses: jumpserver/action-generic-handler@master uses: jumpserver/action-generic-handler@master
env: 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 }}