mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-06 18:33:19 +08:00
Replace downloadCacheFile with downloadCacheStorageSDK
This commit is contained in:
@@ -22,10 +22,24 @@ export async function downloadCacheFile(
|
||||
`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`
|
||||
)
|
||||
|
||||
return blockBlobClient.downloadToFile(
|
||||
const response = await blockBlobClient.downloadToFile(
|
||||
archivePath,
|
||||
0,
|
||||
undefined,
|
||||
downloadOptions
|
||||
)
|
||||
|
||||
switch (response._response.status) {
|
||||
case 200:
|
||||
core.info(`Cache downloaded from "${signedUploadURL}"`)
|
||||
break
|
||||
case 304:
|
||||
core.info(`Cache not found at "${signedUploadURL}"`)
|
||||
break
|
||||
default:
|
||||
core.info(`Unexpected HTTP response: ${response._response.status}`)
|
||||
break
|
||||
}
|
||||
|
||||
return response
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user