mirror of https://github.com/actions/toolkit
Update download-artifact.ts
parent
415c42d27c
commit
65251e1c55
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue