mirror of
https://github.com/nick-fields/retry.git
synced 2026-02-11 07:35:26 +00:00
Compare commits
1 Commits
snyk-upgra
...
v3.0.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c97818ca39 |
@@ -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::`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user