mirror of https://github.com/actions/toolkit
adding more debug statements
parent
2c4f0f555e
commit
6eff4e928d
|
@ -45,9 +45,13 @@ export async function createZipUploadStream(
|
||||||
for (const file of uploadSpecification) {
|
for (const file of uploadSpecification) {
|
||||||
await new Promise((resolve, reject) => {
|
await new Promise((resolve, reject) => {
|
||||||
if (file.sourcePath !== null) {
|
if (file.sourcePath !== null) {
|
||||||
|
core.debug(`createReadStream with: ${file.sourcePath}`)
|
||||||
// Add a normal file to the zip
|
// Add a normal file to the zip
|
||||||
|
const readsstream = createReadStream(file.sourcePath)
|
||||||
|
readsstream.on('error', reject)
|
||||||
|
|
||||||
zip.entry(
|
zip.entry(
|
||||||
createReadStream(file.sourcePath),
|
readsstream,
|
||||||
{name: file.destinationPath},
|
{name: file.destinationPath},
|
||||||
function (err, entry) {
|
function (err, entry) {
|
||||||
core.debug(`${err}`)
|
core.debug(`${err}`)
|
||||||
|
@ -57,6 +61,7 @@ export async function createZipUploadStream(
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
// add directory to zip
|
// add directory to zip
|
||||||
|
core.debug(`add directory with: ${file.destinationPath}`)
|
||||||
zip.entry(
|
zip.entry(
|
||||||
null,
|
null,
|
||||||
{name: `${file.destinationPath}/`},
|
{name: `${file.destinationPath}/`},
|
||||||
|
|
Loading…
Reference in New Issue