Skip to content

Commit

Permalink
fix: group log lines for each attempt (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
raja-anbazhagan authored Feb 17, 2025
1 parent dfb235a commit c97818c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -156,6 +157,8 @@ async function runAction(inputs: Inputs) {
info(`Attempt ${attempt} failed. Reason: ${error.message}`);
}
}
} finally {
info(`::endgroup::`);
}
}
}
Expand Down

0 comments on commit c97818c

Please sign in to comment.