Skip to content

Commit 40d47e8

Browse files
authored
Merge pull request #5 from geekcell/add-log-output-var
Forgot to update packaged file
2 parents 5842be9 + 8386567 commit 40d47e8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

dist/index.js

+8-1
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)