From b6f1e785f1e56ca63ea8e8c79928c7047995d93d Mon Sep 17 00:00:00 2001 From: gliech Date: Mon, 7 Jun 2021 21:00:35 +0000 Subject: [PATCH] chore(release): 1.4.6 ## [1.4.6](https://github.com/gliech/create-github-secret-action/compare/v1.4.5...v1.4.6) (2021-06-07) ### Dependency Updates * bump @actions/core from 1.3.0 to 1.4.0 ([f6d23cd](https://github.com/gliech/create-github-secret-action/commit/f6d23cd8741afad8da348397e3ec4372040b29ad)) --- CHANGELOG.md | 7 +++++++ dist/index.js | 17 ++++++++++++++++- package-lock.json | 2 +- package.json | 2 +- 4 files changed, 25 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c293745..40f227a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [1.4.6](https://github.com/gliech/create-github-secret-action/compare/v1.4.5...v1.4.6) (2021-06-07) + + +### Dependency Updates + +* bump @actions/core from 1.3.0 to 1.4.0 ([f6d23cd](https://github.com/gliech/create-github-secret-action/commit/f6d23cd8741afad8da348397e3ec4372040b29ad)) + ## [1.4.5](https://github.com/gliech/create-github-secret-action/compare/v1.4.4...v1.4.5) (2021-06-07) diff --git a/dist/index.js b/dist/index.js index 6a243ea..0984f3c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -134,7 +134,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0; +exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0; const command_1 = __nccwpck_require__(7351); const file_command_1 = __nccwpck_require__(717); const utils_1 = __nccwpck_require__(5278); @@ -220,6 +220,21 @@ function getInput(name, options) { return val.trim(); } exports.getInput = getInput; +/** + * Gets the values of an multiline input. Each value is also trimmed. + * + * @param name name of the input to get + * @param options optional. See InputOptions. + * @returns string[] + * + */ +function getMultilineInput(name, options) { + const inputs = getInput(name, options) + .split('\n') + .filter(x => x !== ''); + return inputs; +} +exports.getMultilineInput = getMultilineInput; /** * Gets the input value of the boolean type in the YAML 1.2 "core schema" specification. * Support boolean input list: `true | True | TRUE | false | False | FALSE` . diff --git a/package-lock.json b/package-lock.json index 3f5b193..ea8261a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "create-github-secret-action", - "version": "1.4.5", + "version": "1.4.6", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 0af1560..d5832d5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "create-github-secret-action", - "version": "1.4.5", + "version": "1.4.6", "private": "true", "description": "Create or update a Github Secret", "main": "dist/index.js",