mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-01-03 21:22:56 +08:00
Troubleshoot
This commit is contained in:
parent
ee1c07d0aa
commit
4a272e9053
19
packages/cache/src/internal/uploadUtils.ts
vendored
19
packages/cache/src/internal/uploadUtils.ts
vendored
@ -140,17 +140,14 @@ export async function uploadCacheArchiveSDK(
|
|||||||
onProgress: uploadProgress.onProgress()
|
onProgress: uploadProgress.onProgress()
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
// try {
|
||||||
uploadProgress.startDisplayTimer()
|
uploadProgress.startDisplayTimer()
|
||||||
|
|
||||||
core.debug(
|
core.debug(
|
||||||
`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`
|
`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`
|
||||||
)
|
)
|
||||||
|
|
||||||
const response = await blockBlobClient.uploadFile(
|
const response = await blockBlobClient.uploadFile(archivePath, uploadOptions)
|
||||||
archivePath,
|
|
||||||
uploadOptions
|
|
||||||
)
|
|
||||||
|
|
||||||
// TODO: better management of non-retryable errors
|
// TODO: better management of non-retryable errors
|
||||||
if (response._response.status >= 400) {
|
if (response._response.status >= 400) {
|
||||||
@ -160,10 +157,10 @@ export async function uploadCacheArchiveSDK(
|
|||||||
}
|
}
|
||||||
|
|
||||||
return response
|
return response
|
||||||
} catch (error) {
|
// } catch (error) {
|
||||||
core.debug(`Error uploading cache archive: ${error}`)
|
// core.debug(`Error uploading cache archive: ${error}`)
|
||||||
throw error
|
// throw error
|
||||||
} finally {
|
// } finally {
|
||||||
uploadProgress.stopDisplayTimer()
|
// uploadProgress.stopDisplayTimer()
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user