update git workflows

This commit is contained in:
hiyouga
2024-06-08 21:11:32 +08:00
parent 972ec9c668
commit 4c4f950f39
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"