From 06f69cf0d8243e21900f315a65772f40e9b508a2 Mon Sep 17 00:00:00 2001 From: Piradeep Kandasamy <44981951+piradeepk@users.noreply.github.com> Date: Mon, 21 Dec 2020 19:46:57 -0500 Subject: [PATCH] fix: forceNewDeployment input to take a boolean (#150) --- dist/index.js | 2 +- index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index a04865ba8..37454ec30 100644 --- a/dist/index.js +++ b/dist/index.js @@ -381,7 +381,7 @@ async function run() { waitForMinutes = MAX_WAIT_MINUTES; } - const forceNewDeployInput = core.getInput('force-new-deployment', { required: false }); + const forceNewDeployInput = core.getInput('force-new-deployment', { required: false }) || false; const forceNewDeployment = forceNewDeployInput != undefined && (forceNewDeployInput.toLowerCase === 'true' || forceNewDeployInput); // Register the task definition diff --git a/index.js b/index.js index c0f49f74d..2d1ef36da 100644 --- a/index.js +++ b/index.js @@ -223,7 +223,7 @@ async function run() { waitForMinutes = MAX_WAIT_MINUTES; } - const forceNewDeployInput = core.getInput('force-new-deployment', { required: false }); + const forceNewDeployInput = core.getInput('force-new-deployment', { required: false }) || false; const forceNewDeployment = forceNewDeployInput != undefined && (forceNewDeployInput.toLowerCase === 'true' || forceNewDeployInput); // Register the task definition