mirror of https://github.com/actions/toolkit
Troubleshoot
parent
ee1c07d0aa
commit
4a272e9053
|
@ -140,17 +140,14 @@ export async function uploadCacheArchiveSDK(
|
|||
onProgress: uploadProgress.onProgress()
|
||||
}
|
||||
|
||||
try {
|
||||
// try {
|
||||
uploadProgress.startDisplayTimer()
|
||||
|
||||
core.debug(
|
||||
`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`
|
||||
)
|
||||
|
||||
const response = await blockBlobClient.uploadFile(
|
||||
archivePath,
|
||||
uploadOptions
|
||||
)
|
||||
const response = await blockBlobClient.uploadFile(archivePath, uploadOptions)
|
||||
|
||||
// TODO: better management of non-retryable errors
|
||||
if (response._response.status >= 400) {
|
||||
|
@ -160,10 +157,10 @@ export async function uploadCacheArchiveSDK(
|
|||
}
|
||||
|
||||
return response
|
||||
} catch (error) {
|
||||
core.debug(`Error uploading cache archive: ${error}`)
|
||||
throw error
|
||||
} finally {
|
||||
uploadProgress.stopDisplayTimer()
|
||||
}
|
||||
// } catch (error) {
|
||||
// core.debug(`Error uploading cache archive: ${error}`)
|
||||
// throw error
|
||||
// } finally {
|
||||
// uploadProgress.stopDisplayTimer()
|
||||
// }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue