File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -79495,6 +79495,8 @@ const main = async () => {
79495
79495
79496
79496
// Get logging configuration
79497
79497
let logFilterStream = null;
79498
+ let logOutput = null;
79499
+
79498
79500
if (tailLogs) {
79499
79501
core.debug(`Logging enabled. Getting logConfiguration from TaskDefinition.`)
79500
79502
let taskDef = await ecs.describeTaskDefinition({taskDefinition: taskDefinition}).promise();
@@ -79532,7 +79534,9 @@ const main = async () => {
79532
79534
});
79533
79535
79534
79536
logFilterStream.on('data', function (eventObject) {
79535
- core.info(`${new Date(eventObject.timestamp).toISOString()}: ${eventObject.message}`);
79537
+ const logLine = `${new Date(eventObject.timestamp).toISOString()}: ${eventObject.message}`
79538
+ core.info(logLine);
79539
+ logOutput += logLine + '\n';
79536
79540
});
79537
79541
79538
79542
return true;
@@ -79541,6 +79545,9 @@ const main = async () => {
79541
79545
}
79542
79546
}
79543
79547
79548
+ // Set output variable, so it can be used by other actions
79549
+ core.setOutput('log-output', logOutput);
79550
+
79544
79551
// Wait for Task to finish
79545
79552
core.debug(`Waiting for task to finish.`);
79546
79553
await ecs.waitFor('tasksStopped', {cluster, tasks: [taskArn]}).promise();
You can’t perform that action at this time.
0 commit comments