Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix for storing log output
  • Loading branch information
Ic3w0lf committed Jun 15, 2023
commit 95672a0acc3e08ccb860e8feccdc74350b5674c5
8 changes: 4 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79545,17 +79545,17 @@ const main = async () => {
}
}

// Set output variable, so it can be used by other actions
core.setOutput('log-output', logOutput);

// Wait for Task to finish
core.debug(`Waiting for task to finish.`);
await ecs.waitFor('tasksStopped', {cluster, tasks: [taskArn]}).promise();

// Close LogStream
// Close LogStream and store output
if (logFilterStream !== null) {
core.debug(`Closing logStream.`);
logFilterStream.close();

// Export log-output
core.exportVariable('log-output', logOutput);
}

// Describe Task to get Exit Code and Exceptions
Expand Down
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,17 @@ const main = async () => {
}
}

// Set output variable, so it can be used by other actions
core.setOutput('log-output', logOutput);

// Wait for Task to finish
core.debug(`Waiting for task to finish.`);
await ecs.waitFor('tasksStopped', {cluster, tasks: [taskArn]}).promise();

// Close LogStream
// Close LogStream and store output
if (logFilterStream !== null) {
core.debug(`Closing logStream.`);
logFilterStream.close();

// Export log-output
core.exportVariable('log-output', logOutput);
}

// Describe Task to get Exit Code and Exceptions
Expand Down