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/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') === '' 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"