@@ -27,7 +27,7 @@ const IGNORED_TASK_DEFINITION_ATTRIBUTES = [
27
27
];
28
28
29
29
// 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 ) {
31
31
core.info('Running task')
32
32
33
33
const waitForTask = core.getInput('wait-for-task-stopped', { required: false }) || 'false';
@@ -60,7 +60,8 @@ async function runTask(ecs, clusterName, taskDefArn, waitForMinutes) {
60
60
containerOverrides: containerOverrides
61
61
},
62
62
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
64
65
});
65
66
66
67
core.debug(`Run task response ${JSON.stringify(runTaskResponse)}`)
@@ -427,7 +428,7 @@ async function run() {
427
428
core.debug(`shouldRunTask: ${shouldRunTask}`);
428
429
if (shouldRunTask) {
429
430
core.debug("Running ad-hoc task...");
430
- await runTask(ecs, clusterName, taskDefArn, waitForMinutes);
431
+ await runTask(ecs, clusterName, taskDefArn, waitForMinutes, enableECSManagedTags );
431
432
}
432
433
433
434
// Update the service with the new task definition
0 commit comments