From c04afbd61cbbbbd118519fb6d9da27c9e3759240 Mon Sep 17 00:00:00 2001 From: Kun Jinkao <45487685+Snoopy1866@users.noreply.github.com> Date: Wed, 18 Dec 2024 14:50:07 +0800 Subject: [PATCH] update --- .github/scripts/add-labels.js | 2 ++ .github/workflows/issue-label.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/scripts/add-labels.js b/.github/scripts/add-labels.js index 4f3909d..f4db5ec 100644 --- a/.github/scripts/add-labels.js +++ b/.github/scripts/add-labels.js @@ -11,6 +11,8 @@ async function main() { const token = core.getInput("GITHUB_TOKEN"); console.log("Token: ", token); + const variable = core.getInput("VARIABLE"); + console.log("Variable: ", variable); const octokit = github.getOctokit(token); const labels = issueTitle diff --git a/.github/workflows/issue-label.yml b/.github/workflows/issue-label.yml index e44f400..1960b64 100644 --- a/.github/workflows/issue-label.yml +++ b/.github/workflows/issue-label.yml @@ -28,3 +28,4 @@ jobs: node .github/scripts/add-labels.js env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + VARIABLE: "value"