cleaning up debug statements

This commit is contained in:
Vallie Joseph
2024-04-01 13:52:01 +00:00
parent c14e304555
commit 90ee020ccd
2 changed files with 1 additions and 3 deletions

View File

@@ -42,11 +42,9 @@ export async function createZipUploadStream(
zip.on('finish', zipFinishCallback)
zip.on('end', zipEndCallback)
core.debug(`Number of files to upload: ${uploadSpecification.length}`)
for (const file of uploadSpecification) {
await new Promise((resolve, reject) => {
if (file.sourcePath !== null) {
core.debug(`Creating file entry: ${file.sourcePath}`)
// Add a normal file to the zip
zip.entry(
createReadStream(file.sourcePath),
@@ -58,7 +56,6 @@ export async function createZipUploadStream(
)
} else {
// add directory to zip
core.debug(`Creating directory entry: ${file.destinationPath}`)
zip.entry(
null,
{name: `${file.destinationPath}/`},