Skip to content

Commit

Permalink
Update add_label.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tilucasoli committed Jun 28, 2024
1 parent b82e661 commit 0063ac2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/add_label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ jobs:
with:
script: |
const currentLabels = JSON.parse(process.env.LABELS)
github.rest.issues.removeLabel({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: currentLabels
})
if (currentLabels.length > 0) {
github.rest.issues.removeLabel({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: currentLabels
})
}
console.log(currentLabels)
const { execSync } = require('child_process')
Expand Down

0 comments on commit 0063ac2

Please sign in to comment.