File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -391,8 +391,8 @@ async function run() {
391
391
waitForMinutes = MAX_WAIT_MINUTES;
392
392
}
393
393
394
- const forceNewDeployInput = core.getInput('force-new-deployment', { required: false }) || false;
395
- const forceNewDeployment = forceNewDeployInput != undefined && (forceNewDeployInput .toLowerCase === 'true' || forceNewDeployInput) ;
394
+ const forceNewDeployInput = core.getInput('force-new-deployment', { required: false }) || ' false' ;
395
+ const forceNewDeployment = forceNewDeployInput.toLowerCase() === 'true';
396
396
397
397
// Register the task definition
398
398
core.debug('Registering the task definition');
Original file line number Diff line number Diff line change @@ -226,8 +226,8 @@ async function run() {
226
226
waitForMinutes = MAX_WAIT_MINUTES ;
227
227
}
228
228
229
- const forceNewDeployInput = core . getInput ( 'force-new-deployment' , { required : false } ) || false ;
230
- const forceNewDeployment = forceNewDeployInput != undefined && ( forceNewDeployInput . toLowerCase === 'true' || forceNewDeployInput ) ;
229
+ const forceNewDeployInput = core . getInput ( 'force-new-deployment' , { required : false } ) || ' false' ;
230
+ const forceNewDeployment = forceNewDeployInput . toLowerCase ( ) === 'true' ;
231
231
232
232
// Register the task definition
233
233
core . debug ( 'Registering the task definition' ) ;
Original file line number Diff line number Diff line change @@ -741,7 +741,7 @@ describe('Deploy to ECS', () => {
741
741
. mockReturnValueOnce ( 'cluster-789' ) // cluster
742
742
. mockReturnValueOnce ( 'false' ) // wait-for-service-stability
743
743
. mockReturnValueOnce ( '' ) // wait-for-minutes
744
- . mockReturnValueOnce ( true ) ; // force-new-deployment
744
+ . mockReturnValueOnce ( ' true' ) ; // force-new-deployment
745
745
746
746
await run ( ) ;
747
747
expect ( core . setFailed ) . toHaveBeenCalledTimes ( 0 ) ;
You can’t perform that action at this time.
0 commit comments