mirror of https://github.com/actions/toolkit
adding catch to upload zip
parent
6d94ad125b
commit
a2852cee6f
|
@ -76,7 +76,11 @@ export async function uploadArtifact(
|
||||||
const uploadResult = await uploadZipToBlobStorage(
|
const uploadResult = await uploadZipToBlobStorage(
|
||||||
createArtifactResp.signedUploadUrl,
|
createArtifactResp.signedUploadUrl,
|
||||||
zipUploadStream
|
zipUploadStream
|
||||||
|
).catch(err => {
|
||||||
|
throw new InvalidResponseError(
|
||||||
|
`uploadZipToBlobStorage: response blob was not ok: ${err}`
|
||||||
)
|
)
|
||||||
|
})
|
||||||
// finalize the artifact
|
// finalize the artifact
|
||||||
const finalizeArtifactReq: FinalizeArtifactRequest = {
|
const finalizeArtifactReq: FinalizeArtifactRequest = {
|
||||||
workflowRunBackendId: backendIds.workflowRunBackendId,
|
workflowRunBackendId: backendIds.workflowRunBackendId,
|
||||||
|
|
Loading…
Reference in New Issue