From 65251e1c55dae94775efbc89ebeb53a08b1de038 Mon Sep 17 00:00:00 2001 From: dhawalseth Date: Wed, 7 Feb 2024 13:32:47 -0800 Subject: [PATCH] Update download-artifact.ts --- packages/artifact/src/internal/download/download-artifact.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/artifact/src/internal/download/download-artifact.ts b/packages/artifact/src/internal/download/download-artifact.ts index dc54f6fe..b0274bf4 100644 --- a/packages/artifact/src/internal/download/download-artifact.ts +++ b/packages/artifact/src/internal/download/download-artifact.ts @@ -37,9 +37,9 @@ async function exists(path: string): Promise { } } -async function streamExtract(url: string, directory: string): Promise { +async function streamExtract(url: string, directory: string, maxAttempts: int): Promise { let retryCount = 0 - while (retryCount < 5) { + while (retryCount < maxAttempts) { try { await streamExtractExternal(url, directory) return