Skip to content

Commit 617c1b0

Browse files
committed
Updated the code with no capacity provider
1 parent 2c355ae commit 617c1b0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,15 +416,15 @@ async function run() {
416416
const shouldRunTaskInput = core.getInput('run-task', { required: false }) || 'false';
417417
const shouldRunTask = shouldRunTaskInput.toLowerCase() === 'true';
418418
core.debug(`shouldRunTask: ${shouldRunTask}`);
419-
419+
420+
//run task
420421
if (shouldRunTask) {
421422
core.debug("Running one-off task...");
422423
await runTask(ecs, clusterName, taskDefArn, waitForMinutes);
423424
}
424425

425426
// Update the service with the new task definition
426427
if (service) {
427-
428428
// Determine the deployment controller
429429
const describeResponse = await ecs.describeServices({
430430
services: [service],

index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,7 @@ describe('Deploy to ECS', () => {
12401240
.mockReturnValueOnce('') // force-new-deployment
12411241
.mockReturnValueOnce('') // desired-count
12421242
.mockReturnValueOnce('true') // run-task
1243-
.mockReturnValueOnce('true') ; // wait-for-task-stopped
1243+
.mockReturnValueOnce('true'); // wait-for-task-stopped
12441244

12451245

12461246

0 commit comments

Comments
 (0)