From c97818ca39074beaea45180dba704f92496a0082 Mon Sep 17 00:00:00 2001 From: Raja Anbazhagan Date: Mon, 17 Feb 2025 22:56:57 +0530 Subject: [PATCH] fix: group log lines for each attempt (#146) --- src/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.ts b/src/index.ts index aa5642e..953ec04 100644 --- a/src/index.ts +++ b/src/index.ts @@ -130,6 +130,7 @@ async function runAction(inputs: Inputs) { await validateInputs(inputs); for (let attempt = 1; attempt <= inputs.max_attempts; attempt++) { + info(`::group::Attempt ${attempt}`); try { // just keep overwriting attempts output setOutput(OUTPUT_TOTAL_ATTEMPTS_KEY, attempt); @@ -156,6 +157,8 @@ async function runAction(inputs: Inputs) { info(`Attempt ${attempt} failed. Reason: ${error.message}`); } } + } finally { + info(`::endgroup::`); } } }