Change label addition method on test failure (#339)

Replaced action for adding labels on test failure with a command using GitHub CLI.
This commit is contained in:
Jinnrry 2026-05-22 23:58:41 +08:00 committed by GitHub
parent b0913ee804
commit 9908c5353d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,12 +47,9 @@ jobs:
- name: Pull Request Labeler
if: ${{ failure() }}
uses: actions-cool/issues-helper@v3
with:
actions: 'add-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.pull_request.number }}
labels: 'Auto: Test Failed'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh pr edit ${{ github.event.pull_request.number }} --add-label "Auto: Test Failed"
- name: Install Dependencies
run: npm install --global yarn