@@ -40,10 +40,8 @@ async function runTask(ecs,clusterName, taskDefArn, waitForMinutes) {
40
40
const containerOverrides = JSON.parse(core.getInput('run-task-container-overrides', { required: false }) || '[]');
41
41
const assignPublicIP = core.getInput('run-task-assign-public-IP', { required: false }) || 'DISABLED';
42
42
43
-
44
43
let awsvpcConfiguration = {}
45
44
46
-
47
45
if (subnetIds != "") {
48
46
awsvpcConfiguration["subnets"] = subnetIds.split(',')
49
47
}
@@ -77,7 +75,7 @@ async function runTask(ecs,clusterName, taskDefArn, waitForMinutes) {
77
75
const region = await ecs.config.region();
78
76
const consoleHostname = region.startsWith('cn') ? 'console.amazonaws.cn' : 'console.aws.amazon.com';
79
77
80
- core.info(`Task running: https://${consoleHostname}/ecs/home?region=${region}#/clusters/${clusterName}/tasks `);
78
+ core.info(`Task running: https://${consoleHostname}/ecs/home?region=${region}#/clusters/${clusterName}/task/${runTaskResponse} `);
81
79
82
80
83
81
if (runTaskResponse.failures && runTaskResponse.failures.length > 0) {
@@ -149,7 +147,7 @@ async function updateEcsService(ecs, clusterName, service, taskDefArn, waitForSe
149
147
cluster: clusterName,
150
148
service: service,
151
149
taskDefinition: taskDefArn,
152
- forceNewDeployment: forceNewDeployment,
150
+ forceNewDeployment: forceNewDeployment
153
151
};
154
152
155
153
// Add the desiredCount property only if it is defined and a number.
@@ -346,8 +344,10 @@ async function createCodeDeployDeployment(codedeploy, clusterName, service, task
346
344
}
347
345
};
348
346
// If it hasn't been set then we don't even want to pass it to the api call to maintain previous behaviour.
347
+ let codeDeployDescriptionLimit = 512;
348
+
349
349
if (codeDeployDescription) {
350
- deploymentParams.description = (codeDeployDescription.length <= 512 ) ? codeDeployDescription : `${codeDeployDescription.substring(0,511)}…`;
350
+ deploymentParams.description = (codeDeployDescription.length <= codeDeployDescriptionLimit ) ? codeDeployDescription : `${codeDeployDescription.substring(0,511)}…`;
351
351
}
352
352
if (codeDeployConfig) {
353
353
deploymentParams.deploymentConfigName = codeDeployConfig
0 commit comments