mirror of https://github.com/actions/toolkit
Update download-artifact.ts
parent
65251e1c55
commit
c3bc391b62
|
@ -140,7 +140,7 @@ export async function downloadArtifactPublic(
|
||||||
|
|
||||||
try {
|
try {
|
||||||
core.info(`Starting download of artifact to: ${downloadPath}`)
|
core.info(`Starting download of artifact to: ${downloadPath}`)
|
||||||
await streamExtract(location, downloadPath)
|
await streamExtract(location, downloadPath, options.maxAttempts)
|
||||||
core.info(`Artifact download completed successfully.`)
|
core.info(`Artifact download completed successfully.`)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw new Error(`Unable to download and extract artifact: ${error.message}`)
|
throw new Error(`Unable to download and extract artifact: ${error.message}`)
|
||||||
|
@ -192,7 +192,7 @@ export async function downloadArtifactInternal(
|
||||||
|
|
||||||
try {
|
try {
|
||||||
core.info(`Starting download of artifact to: ${downloadPath}`)
|
core.info(`Starting download of artifact to: ${downloadPath}`)
|
||||||
await streamExtract(signedUrl, downloadPath)
|
await streamExtract(signedUrl, downloadPath, options.maxAttempts)
|
||||||
core.info(`Artifact download completed successfully.`)
|
core.info(`Artifact download completed successfully.`)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw new Error(`Unable to download and extract artifact: ${error.message}`)
|
throw new Error(`Unable to download and extract artifact: ${error.message}`)
|
||||||
|
|
Loading…
Reference in New Issue