File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -79495,6 +79495,8 @@ const main = async () => {
7949579495
7949679496 // Get logging configuration
7949779497 let logFilterStream = null;
79498+ let logOutput = null;
79499+
7949879500 if (tailLogs) {
7949979501 core.debug(`Logging enabled. Getting logConfiguration from TaskDefinition.`)
7950079502 let taskDef = await ecs.describeTaskDefinition({taskDefinition: taskDefinition}).promise();
@@ -79532,7 +79534,9 @@ const main = async () => {
7953279534 });
7953379535
7953479536 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';
7953679540 });
7953779541
7953879542 return true;
@@ -79541,6 +79545,9 @@ const main = async () => {
7954179545 }
7954279546 }
7954379547
79548+ // Set output variable, so it can be used by other actions
79549+ core.setOutput('log-output', logOutput);
79550+
7954479551 // Wait for Task to finish
7954579552 core.debug(`Waiting for task to finish.`);
7954679553 await ecs.waitFor('tasksStopped', {cluster, tasks: [taskArn]}).promise();
You can’t perform that action at this time.
0 commit comments