ci: add labels

This commit is contained in:
CaptainB 2023-02-16 11:59:16 +08:00 committed by 刘瑞斌
parent 151ab0a3d1
commit 925c22bd9d
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 }}