From 897699fba30382285440679022d9f167a464433f Mon Sep 17 00:00:00 2001 From: marocchino Date: Wed, 9 Jun 2021 16:08:18 +0900 Subject: [PATCH 1/2] Bump @action/core from 1.2.6 to 1.4.0 --- package.json | 2 +- yarn.lock | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 727a778..fa26999 100644 --- a/package.json +++ b/package.json @@ -46,4 +46,4 @@ "ts-jest": "^24.2.0", "typescript": "^4.1.3" } -} \ No newline at end of file +} diff --git a/yarn.lock b/yarn.lock index dc88818..3a7cca8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3,9 +3,9 @@ "@actions/core@^1.2.6": - version "1.2.6" - resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.2.6.tgz#a78d49f41a4def18e88ce47c2cac615d5694bf09" - integrity sha512-ZQYitnqiyBc3D+k7LsgSBmMDVkOVidaagDG7j3fOym77jNunWRuYx7VSHa9GNfFZh+zh61xsCjRj4JxMZlDqTA== + version "1.4.0" + resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.4.0.tgz#cf2e6ee317e314b03886adfeb20e448d50d6e524" + integrity sha512-CGx2ilGq5i7zSLgiiGUtBCxhRRxibJYU6Fim0Q1Wg2aQL2LTnF27zbqZOrxfvFQ55eSBW0L8uVStgtKMpa0Qlg== "@actions/github@^3.0.0": version "3.0.0" From 320aefd10a507412136f77072e624b36b80b7d29 Mon Sep 17 00:00:00 2001 From: marocchino Date: Wed, 9 Jun 2021 16:08:57 +0900 Subject: [PATCH 2/2] Use new function --- src/main.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main.ts b/src/main.ts index 596b4a6..5e0b0ae 100644 --- a/src/main.ts +++ b/src/main.ts @@ -3,12 +3,9 @@ import * as core from '@actions/core'; async function run(): Promise { try { - const githubToken = core.getInput('github_token', { required: true }); + const githubToken = core.getInput('github_token', {required: true}); - const labels = core - .getInput('labels') - .split('\n') - .filter(l => l !== ''); + const labels = core.getMultilineInput('labels'); const [owner, repo] = core.getInput('repo').split('/'); const number = core.getInput('number') === ''