diff --git a/.github/workflows/add_label.yml b/.github/workflows/add_label.yml index f52006ea1..2d1ce7d71 100644 --- a/.github/workflows/add_label.yml +++ b/.github/workflows/add_label.yml @@ -21,11 +21,13 @@ jobs: with: script: | console.log(process.env.LABELS) + // convert process.env.LABELS to an array of strings + const labelsa = process.env.LABELS.split(',') github.rest.issues.removeLabel({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - name: ["repo"] + name: labelsa }) const { execSync } = require('child_process')