This commit is contained in:
Jozef Steinhübl 2024-04-02 11:45:21 +02:00
parent 932c3b236c
commit 090f970b70
3 changed files with 372 additions and 85 deletions

198
dist/cache-save/index.js generated vendored

File diff suppressed because one or more lines are too long

256
dist/setup/index.js generated vendored

File diff suppressed because one or more lines are too long

View file

@ -1,5 +1,8 @@
export function retry<T>(fn: () => Promise<T>, retries: number): Promise<T> { export function retry<T>(fn: () => Promise<T>, retries: number): Promise<T> {
return fn().catch((err) => { return fn().catch((err) => {
console.log(`Remaining retries ${retries}`);
console.log("Current error:");
console.log(err);
if (retries <= 0) { if (retries <= 0) {
throw err; throw err;
} }