Skip to content

Commit

Permalink
feat: add label-pr action --story=119540612
Browse files Browse the repository at this point in the history
  • Loading branch information
normal-wls committed Sep 6, 2024
1 parent 24b4f8c commit 9fd0738
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/label-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:

- name: Label PR
run: |
gh auth login --with-token ${{ secrets.MY_GITHUB_SECRET }}
PR_TITLE="${{ github.event.pull_request.title }}"
if [[ "$PR_TITLE" == "fix:"* ]]; then
gh pr edit ${{ github.event.pull_request.number }} --add-label bugfix
Expand All @@ -24,4 +23,4 @@ jobs:
echo "No label with this title: $PR_TITLE"
fi
env:
GITHUB_TOKEN: "${{ secrets.MY_GITHUB_SECRET }}"
GH_TOKEN: ${{ secrets.MY_GITHUB_SECRET }}

0 comments on commit 9fd0738

Please sign in to comment.