diff --git a/dist/index.js b/dist/index.js index bb6ce171a..838c7cd39 100644 --- a/dist/index.js +++ b/dist/index.js @@ -355,8 +355,10 @@ async function run() { if (waitForMinutes > MAX_WAIT_MINUTES) { waitForMinutes = MAX_WAIT_MINUTES; } - const forceNewDeployment = core.getInput('force-new-deployment', { required: false }) || false; + const forceNewDeployInput = core.getInput('force-new-deployment', { required: false }); + const forceNewDeployment = forceNewDeployInput != undefined && (forceNewDeployInput.toLowerCase === 'true' || forceNewDeployInput); + // Register the task definition core.debug('Registering the task definition'); const taskDefPath = path.isAbsolute(taskDefinitionFile) ? diff --git a/index.js b/index.js index dc9b2fef8..c0f49f74d 100644 --- a/index.js +++ b/index.js @@ -222,8 +222,10 @@ async function run() { if (waitForMinutes > MAX_WAIT_MINUTES) { waitForMinutes = MAX_WAIT_MINUTES; } - const forceNewDeployment = core.getInput('force-new-deployment', { required: false }) || false; + const forceNewDeployInput = core.getInput('force-new-deployment', { required: false }); + const forceNewDeployment = forceNewDeployInput != undefined && (forceNewDeployInput.toLowerCase === 'true' || forceNewDeployInput); + // Register the task definition core.debug('Registering the task definition'); const taskDefPath = path.isAbsolute(taskDefinitionFile) ?