update git workflows

Former-commit-id: 5a3f26bc53433caa98b2a66294becaf156280a4c
This commit is contained in:
hiyouga
2024-06-08 21:11:32 +08:00
parent 6d9fbb3fa9
commit 82533114a7
2 changed files with 25 additions and 9 deletions

17
.github/workflows/label_issue.yml vendored Normal file
View File

@@ -0,0 +1,17 @@
name: label_issue
on:
issues:
types:
- opened
jobs:
label_issue:
runs-on: ubuntu-latest
steps:
- env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE_URL: ${{ github.event.issue.html_url }}
run: |
gh issue edit $ISSUE_URL --add-label "pending"