Skip to content

Commit 134d1cd

Browse files
authored
Merge pull request #6 from geekcell/log-output-fix
Fix for storing log output
2 parents 40d47e8 + 95672a0 commit 134d1cd

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

dist/index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -79545,17 +79545,17 @@ const main = async () => {
7954579545
}
7954679546
}
7954779547

79548-
// Set output variable, so it can be used by other actions
79549-
core.setOutput('log-output', logOutput);
79550-
7955179548
// Wait for Task to finish
7955279549
core.debug(`Waiting for task to finish.`);
7955379550
await ecs.waitFor('tasksStopped', {cluster, tasks: [taskArn]}).promise();
7955479551

79555-
// Close LogStream
79552+
// Close LogStream and store output
7955679553
if (logFilterStream !== null) {
7955779554
core.debug(`Closing logStream.`);
7955879555
logFilterStream.close();
79556+
79557+
// Export log-output
79558+
core.exportVariable('log-output', logOutput);
7955979559
}
7956079560

7956179561
// Describe Task to get Exit Code and Exceptions

index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -117,17 +117,17 @@ const main = async () => {
117117
}
118118
}
119119

120-
// Set output variable, so it can be used by other actions
121-
core.setOutput('log-output', logOutput);
122-
123120
// Wait for Task to finish
124121
core.debug(`Waiting for task to finish.`);
125122
await ecs.waitFor('tasksStopped', {cluster, tasks: [taskArn]}).promise();
126123

127-
// Close LogStream
124+
// Close LogStream and store output
128125
if (logFilterStream !== null) {
129126
core.debug(`Closing logStream.`);
130127
logFilterStream.close();
128+
129+
// Export log-output
130+
core.exportVariable('log-output', logOutput);
131131
}
132132

133133
// Describe Task to get Exit Code and Exceptions

0 commit comments

Comments
 (0)