From c3bc391b62812561634a0b8b99813d767b0ca1b0 Mon Sep 17 00:00:00 2001 From: dhawalseth Date: Wed, 7 Feb 2024 13:38:48 -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 b0274bf4..30e4f235 100644 --- a/packages/artifact/src/internal/download/download-artifact.ts +++ b/packages/artifact/src/internal/download/download-artifact.ts @@ -140,7 +140,7 @@ export async function downloadArtifactPublic( try { core.info(`Starting download of artifact to: ${downloadPath}`) - await streamExtract(location, downloadPath) + await streamExtract(location, downloadPath, options.maxAttempts) core.info(`Artifact download completed successfully.`) } catch (error) { throw new Error(`Unable to download and extract artifact: ${error.message}`) @@ -192,7 +192,7 @@ export async function downloadArtifactInternal( try { core.info(`Starting download of artifact to: ${downloadPath}`) - await streamExtract(signedUrl, downloadPath) + await streamExtract(signedUrl, downloadPath, options.maxAttempts) core.info(`Artifact download completed successfully.`) } catch (error) { throw new Error(`Unable to download and extract artifact: ${error.message}`)