Skip to content

Commit 75be5b8

Browse files
committed
Update dist/index.js file
1 parent 89b23e0 commit 75be5b8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dist/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const IGNORED_TASK_DEFINITION_ATTRIBUTES = [
2727
];
2828

2929
// Method to run a stand-alone task with desired inputs
30-
async function runTask(ecs, clusterName, taskDefArn, waitForMinutes) {
30+
async function runTask(ecs, clusterName, taskDefArn, waitForMinutes, enableECSManagedTags) {
3131
core.info('Running task')
3232

3333
const waitForTask = core.getInput('wait-for-task-stopped', { required: false }) || 'false';
@@ -60,7 +60,8 @@ async function runTask(ecs, clusterName, taskDefArn, waitForMinutes) {
6060
containerOverrides: containerOverrides
6161
},
6262
launchType: launchType,
63-
networkConfiguration: Object.keys(awsvpcConfiguration).length === 0 ? null : { awsvpcConfiguration: awsvpcConfiguration }
63+
networkConfiguration: Object.keys(awsvpcConfiguration).length === 0 ? null : { awsvpcConfiguration: awsvpcConfiguration },
64+
enableECSManagedTags: enableECSManagedTags
6465
});
6566

6667
core.debug(`Run task response ${JSON.stringify(runTaskResponse)}`)
@@ -427,7 +428,7 @@ async function run() {
427428
core.debug(`shouldRunTask: ${shouldRunTask}`);
428429
if (shouldRunTask) {
429430
core.debug("Running ad-hoc task...");
430-
await runTask(ecs, clusterName, taskDefArn, waitForMinutes);
431+
await runTask(ecs, clusterName, taskDefArn, waitForMinutes, enableECSManagedTags);
431432
}
432433

433434
// Update the service with the new task definition

0 commit comments

Comments
 (0)