From 54c0aebce2a494cf9322b7a67e143d8424926cc1 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira <62367544+tilucasoli@users.noreply.github.com> Date: Fri, 28 Jun 2024 17:50:00 -0300 Subject: [PATCH] Update add_label.yml --- .github/workflows/add_label.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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')