Add group and print the outputs

This commit is contained in:
Alexander Lyon 2022-03-25 09:59:22 +00:00
parent 03012abe8b
commit 1f50d6efca
No known key found for this signature in database
GPG key ID: 533E172B9B9D54DF

View file

@ -49,8 +49,12 @@ async function main(): Promise<void> {
try {
const { stdout, stderr } = await run(actionInput);
core.startGroup("setting outputs");
console.log("stdout: ", stdout.slice(0, 50), "...");
core.setOutput("stdout", stdout);
core.setOutput("stdout", stderr);
console.log("stderr: ", stderr.slice(0, 50), "...");
core.setOutput("stderr", stderr);
core.endGroup();
} catch (error) {
core.setFailed((<Error>error).message);
}