mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 01:49:07 +08:00
adding catch to upload zip
This commit is contained in:
parent
6d94ad125b
commit
a2852cee6f
@ -76,7 +76,11 @@ export async function uploadArtifact(
|
||||
const uploadResult = await uploadZipToBlobStorage(
|
||||
createArtifactResp.signedUploadUrl,
|
||||
zipUploadStream
|
||||
)
|
||||
).catch(err => {
|
||||
throw new InvalidResponseError(
|
||||
`uploadZipToBlobStorage: response blob was not ok: ${err}`
|
||||
)
|
||||
})
|
||||
// finalize the artifact
|
||||
const finalizeArtifactReq: FinalizeArtifactRequest = {
|
||||
workflowRunBackendId: backendIds.workflowRunBackendId,
|
||||
|
Loading…
x
Reference in New Issue
Block a user