Skip to content

Commit

Permalink
check if label exists before deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
trueberryless committed Nov 30, 2024
1 parent 504d994 commit 24965ea
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh label delete "bug" --yes
gh label delete "documentation" --yes
gh label delete "duplicate" --yes
gh label delete "enhancement" --yes
gh label delete "good first issue" --yes
gh label delete "help wanted" --yes
gh label delete "invalid" --yes
gh label delete "question" --yes
gh label delete "wontfix" --yes
if gh label list | grep -q "bug"; then gh label delete "bug" --yes fi
if gh label list | grep -q "documentation"; then gh label delete "documentation" --yes fi
if gh label list | grep -q "duplicate"; then gh label delete "duplicate" --yes fi
if gh label list | grep -q "enhancement"; then gh label delete "enhancement" --yes fi
if gh label list | grep -q "good first issue"; then gh label delete "good first issue" --yes fi
if gh label list | grep -q "help wanted"; then gh label delete "help wanted" --yes fi
if gh label list | grep -q "invalid"; then gh label delete "invalid" --yes fi
if gh label list | grep -q "question"; then gh label delete "question" --yes fi
if gh label list | grep -q "wontfix"; then gh label delete "wontfix" --yes fi
gh label create "🚨 action" --description "Changes in GitHub workflows or actions" --color "A75AD5" --force
gh label create "🤖 bot" --description "Automatically generated pull request" --color "0075CA" --force
Expand Down

0 comments on commit 24965ea

Please sign in to comment.