Skip to content

Commit

Permalink
Fix issue tagging action (#4874)
Browse files Browse the repository at this point in the history
* Update label-issues.yml

* Try logging

* Update label-issues.yml
  • Loading branch information
localden authored Aug 1, 2024
1 parent 984d774 commit de3f221
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/label-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ jobs:
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
console.log('${{ steps.check_label.outputs.result }}')
const labels = JSON.parse('${{ steps.check_label.outputs.result }}');
const labelsJson = '${{ steps.check_label.outputs.result }}';
console.log(labelsJson);
const labels = JSON.parse(labelsJson);
if (labels.length > 0) {
await github.rest.issues.addLabels({
owner: context.repo.owner,
Expand Down

0 comments on commit de3f221

Please sign in to comment.