mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-11-18 16:31:06 +08:00
update optional settings for blob client
This commit is contained in:
parent
73babeabef
commit
c119fcd773
@ -42,12 +42,11 @@ async function exists(path: string): Promise<boolean> {
|
||||
async function streamExtract(url: string, directory: string): Promise<void> {
|
||||
const blobClient = new BlobClient(url)
|
||||
const options: BlobDownloadOptions = {
|
||||
maxRetryRequests: 3,
|
||||
abortSignal: undefined,
|
||||
onProgress: (progress) => core.debug(`Download progress: ${progress.loadedBytes}`)
|
||||
maxRetryRequests: 5,
|
||||
onProgress: (progress) => core.info(`Download bytes ${progress.loadedBytes}`)
|
||||
}
|
||||
|
||||
const response = await blobClient.download(0, 0, options)
|
||||
const response = await blobClient.download(0, undefined, options)
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
response.readableStreamBody
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user