1
0
Fork 0

Adding debug statement for upload

pull/1700/head
Vallie Joseph 2024-04-02 05:39:02 +00:00
parent c5f3463c0b
commit 38f54e9d73
1 changed files with 17 additions and 7 deletions

View File

@ -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}`)
}
})
)
)
}
}