From 6eff4e928d591b8c91f1f7ac7ef94facf75c58a7 Mon Sep 17 00:00:00 2001 From: Vallie Joseph Date: Mon, 1 Apr 2024 15:15:28 +0000 Subject: [PATCH] adding more debug statements --- packages/artifact/src/internal/upload/zip.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/artifact/src/internal/upload/zip.ts b/packages/artifact/src/internal/upload/zip.ts index 022330a5..639ef3f4 100644 --- a/packages/artifact/src/internal/upload/zip.ts +++ b/packages/artifact/src/internal/upload/zip.ts @@ -45,9 +45,13 @@ export async function createZipUploadStream( for (const file of uploadSpecification) { await new Promise((resolve, reject) => { if (file.sourcePath !== null) { + core.debug(`createReadStream with: ${file.sourcePath}`) // Add a normal file to the zip + const readsstream = createReadStream(file.sourcePath) + readsstream.on('error', reject) + zip.entry( - createReadStream(file.sourcePath), + readsstream, {name: file.destinationPath}, function (err, entry) { core.debug(`${err}`) @@ -57,6 +61,7 @@ export async function createZipUploadStream( ) } else { // add directory to zip + core.debug(`add directory with: ${file.destinationPath}`) zip.entry( null, {name: `${file.destinationPath}/`},