From 38f54e9d738bbaf3f7f76b9a20b76a21b0a31010 Mon Sep 17 00:00:00 2001 From: Vallie Joseph Date: Tue, 2 Apr 2024 05:39:02 +0000 Subject: [PATCH] Adding debug statement for upload --- packages/artifact/src/internal/upload/zip.ts | 24 ++++++++++++++------ 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/packages/artifact/src/internal/upload/zip.ts b/packages/artifact/src/internal/upload/zip.ts index 9c016650..4dbcda2e 100644 --- a/packages/artifact/src/internal/upload/zip.ts +++ b/packages/artifact/src/internal/upload/zip.ts @@ -66,20 +66,30 @@ export async function createZipUploadStream( readStream.on('error', function (err) { core.debug(`${err}`) }) // Catch any errors from createReadStream - fileUploadQueue.push( - zip.entry(readStream, {name: file.destinationPath}, function (err) { + const fileEntry = zip.entry( + readStream, + {name: file.destinationPath}, + function (err, entry) { if (err) { core.error('A file entry error occurred:', err) } - }) + core.debug(`File entry was succesfull: ${entry}`) + } ) + + fileUploadQueue.push(fileEntry) } else { fileUploadQueue.push( - zip.entry(null, {name: `${file.destinationPath}/`}, function (err) { - if (err) { - core.error('A directory entry error occurred:', err) + zip.entry( + null, + {name: `${file.destinationPath}/`}, + function (err, entry) { + if (err) { + core.error('A directory entry error occurred:', err) + } + core.debug(`File entry was succesfull: ${entry}`) } - }) + ) ) } }