mirror of https://github.com/actions/toolkit
Adding debug statement for upload
parent
c5f3463c0b
commit
38f54e9d73
|
@ -66,20 +66,30 @@ export async function createZipUploadStream(
|
||||||
readStream.on('error', function (err) {
|
readStream.on('error', function (err) {
|
||||||
core.debug(`${err}`)
|
core.debug(`${err}`)
|
||||||
}) // Catch any errors from createReadStream
|
}) // Catch any errors from createReadStream
|
||||||
fileUploadQueue.push(
|
const fileEntry = zip.entry(
|
||||||
zip.entry(readStream, {name: file.destinationPath}, function (err) {
|
readStream,
|
||||||
|
{name: file.destinationPath},
|
||||||
|
function (err, entry) {
|
||||||
if (err) {
|
if (err) {
|
||||||
core.error('A file entry error occurred:', err)
|
core.error('A file entry error occurred:', err)
|
||||||
}
|
}
|
||||||
})
|
core.debug(`File entry was succesfull: ${entry}`)
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
fileUploadQueue.push(fileEntry)
|
||||||
} else {
|
} else {
|
||||||
fileUploadQueue.push(
|
fileUploadQueue.push(
|
||||||
zip.entry(null, {name: `${file.destinationPath}/`}, function (err) {
|
zip.entry(
|
||||||
if (err) {
|
null,
|
||||||
core.error('A directory entry error occurred:', err)
|
{name: `${file.destinationPath}/`},
|
||||||
|
function (err, entry) {
|
||||||
|
if (err) {
|
||||||
|
core.error('A directory entry error occurred:', err)
|
||||||
|
}
|
||||||
|
core.debug(`File entry was succesfull: ${entry}`)
|
||||||
}
|
}
|
||||||
})
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue