1
0
Fork 0

Update download-artifact.ts

pull/1657/head
dhawalseth 2024-02-07 13:32:47 -08:00 committed by GitHub
parent 415c42d27c
commit 65251e1c55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -37,9 +37,9 @@ async function exists(path: string): Promise<boolean> {
}
}
async function streamExtract(url: string, directory: string): Promise<void> {
async function streamExtract(url: string, directory: string, maxAttempts: int): Promise<void> {
let retryCount = 0
while (retryCount < 5) {
while (retryCount < maxAttempts) {
try {
await streamExtractExternal(url, directory)
return