mirror of https://github.com/actions/toolkit
adding finalize
parent
9299663297
commit
b1f55c6942
|
@ -72,12 +72,10 @@ export async function createZipUploadStream(
|
||||||
core.debug(
|
core.debug(
|
||||||
`Zip read high watermark value ${zipUploadStream.readableHighWaterMark}`
|
`Zip read high watermark value ${zipUploadStream.readableHighWaterMark}`
|
||||||
)
|
)
|
||||||
await Promise.all(fileUploadPromesses).then(() => {
|
await Promise.all(fileUploadPromesses)
|
||||||
zip.finalize()
|
zip.finalize()
|
||||||
|
|
||||||
return zipUploadStream
|
return zipUploadStream
|
||||||
})
|
|
||||||
return Promise.reject(zipUploadStream)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
|
|
Loading…
Reference in New Issue