From 625898f6eb0b0c2a3c6cb79f1bb6342ea84fd848 Mon Sep 17 00:00:00 2001 From: Ganeshrockz Date: Wed, 14 Apr 2021 14:31:04 +0530 Subject: [PATCH] Removing whitespace from manifests --- src/run.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/run.ts b/src/run.ts index 073dd27c..c16dcc21 100644 --- a/src/run.ts +++ b/src/run.ts @@ -61,6 +61,12 @@ export async function run() { let action = core.getInput('action'); let manifests = manifestsInput.split(/[\n,]+/); + if (manifests.length > 0) { + manifests = manifests.map(manifest => { + return manifest.trim(); + }); + } + if (action === 'deploy') { let strategy = core.getInput('strategy'); console.log("strategy: ", strategy)