1
0
Fork 0

adding more debug statements

pull/1700/head
Vallie Joseph 2024-04-01 15:15:28 +00:00
parent 2c4f0f555e
commit 6eff4e928d
1 changed files with 6 additions and 1 deletions

View File

@ -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}/`},