mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 14:59:06 +08:00
adding finalize
This commit is contained in:
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…
x
Reference in New Issue
Block a user