From b1f55c6942fa76e8899f1d27f1aa8c409d9095eb Mon Sep 17 00:00:00 2001 From: Vallie Joseph Date: Thu, 28 Mar 2024 17:15:08 +0000 Subject: [PATCH] adding finalize --- packages/artifact/src/internal/upload/zip.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/artifact/src/internal/upload/zip.ts b/packages/artifact/src/internal/upload/zip.ts index df7230fa..364f8f7d 100644 --- a/packages/artifact/src/internal/upload/zip.ts +++ b/packages/artifact/src/internal/upload/zip.ts @@ -72,12 +72,10 @@ export async function createZipUploadStream( core.debug( `Zip read high watermark value ${zipUploadStream.readableHighWaterMark}` ) - await Promise.all(fileUploadPromesses).then(() => { - zip.finalize() + await Promise.all(fileUploadPromesses) + zip.finalize() - return zipUploadStream - }) - return Promise.reject(zipUploadStream) + return zipUploadStream } // eslint-disable-next-line @typescript-eslint/no-explicit-any