mirror of
https://github.com/actions/toolkit.git
synced 2026-08-21 00:00:16 +02:00
adding catch to upload zip
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user