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