Compare commits

...

1 Commits

Author SHA1 Message Date
Raja Anbazhagan
c97818ca39 fix: group log lines for each attempt (#146) 2025-02-17 12:26:57 -05:00

View File

@@ -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::`);
}
}
}