Skip to content

Commit

Permalink
fix: 工作流执行错误
Browse files Browse the repository at this point in the history
  • Loading branch information
IceOfSummer authored Nov 11, 2024
1 parent b37d6e0 commit 3be6fff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
test_success: ${{ job.ci.steps.test.success }}

add_label_for_pr:
name: 'Add label for pull request'
needs: ci
if: ${{ always() && github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
Expand All @@ -54,14 +55,14 @@ jobs:
with:
actions: 'remove-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
issue-number: ${{ github.event.pull_request.number }}
labels: 'ci:success,ci:test-fail,ci:lint-fail'
- name: Add label
uses: actions-cool/issues-helper@v3
with:
actions: 'add-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
issue-number: ${{ github.event.pull_request.number }}
labels: >
${{ needs.ci.outputs.lint_success != '0' && 'ci:lint-fail,' || '' }}
${{ needs.ci.outputs.test_success != '0' && 'ci:test-fail,' || '' }}
Expand Down

0 comments on commit 3be6fff

Please sign in to comment.