From 1f50d6efcaf775922f5bdf0309af25fb5373a6f3 Mon Sep 17 00:00:00 2001 From: Alexander Lyon Date: Fri, 25 Mar 2022 09:59:22 +0000 Subject: [PATCH] Add group and print the outputs --- src/main.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 0453e9f..244164c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -49,8 +49,12 @@ async function main(): Promise { 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).message); }