Skip to content

Commit

Permalink
fix: forceNewDeployment input to take a boolean (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
piradeepk authored Dec 22, 2020
1 parent 3ca1b2b commit 06f69cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 06f69cf

Please sign in to comment.