Skip to content

Commit

Permalink
fixed api and moved call
Browse files Browse the repository at this point in the history
  • Loading branch information
shesaave authored and amazreech committed Aug 1, 2024
1 parent 79dc9fc commit 1c8853c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,16 @@ async function run() {
}
try{
describeTaskDefResponse = await ecs.describeTaskDefinition(params);
console.log("Success");
taskDefContents = require(describeTaskDefResponse.taskDefinition);
console.log("Success", describeTaskDefResponse.taskDefinition);
}
catch (error) {
core.setFailed("Failed to describe task definition in ECS: " + error.message);
core.debug("Task definition contents:");
core.debug(JSON.stringify(taskDefContents, undefined, 4));
throw(error);
}
taskDefContents = describeTaskDefResponse.taskDefinition;

} else{
throw new Error("Either task definition, task definition arn or task definition family must be provided");
}
Expand Down
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,16 @@ async function run() {
}
try{
describeTaskDefResponse = await ecs.describeTaskDefinition(params);
console.log("Success");
taskDefContents = require(describeTaskDefResponse.taskDefinition);
console.log("Success", describeTaskDefResponse.taskDefinition);
}
catch (error) {
core.setFailed("Failed to describe task definition in ECS: " + error.message);
core.debug("Task definition contents:");
core.debug(JSON.stringify(taskDefContents, undefined, 4));
throw(error);
}
taskDefContents = describeTaskDefResponse.taskDefinition;

} else{
throw new Error("Either task definition, task definition arn or task definition family must be provided");
}
Expand Down

0 comments on commit 1c8853c

Please sign in to comment.