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