mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 00:29:09 +08:00
Adding debug statement for upload
This commit is contained in:
parent
c5f3463c0b
commit
38f54e9d73
@ -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) {
|
||||
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}`)
|
||||
}
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user