mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-05 07:13:15 +08:00
cleaning up debug statements
This commit is contained in:
@@ -42,11 +42,9 @@ export async function createZipUploadStream(
|
||||
|
||||
zip.on('finish', zipFinishCallback)
|
||||
zip.on('end', zipEndCallback)
|
||||
core.debug(`Number of files to upload: ${uploadSpecification.length}`)
|
||||
for (const file of uploadSpecification) {
|
||||
await new Promise((resolve, reject) => {
|
||||
if (file.sourcePath !== null) {
|
||||
core.debug(`Creating file entry: ${file.sourcePath}`)
|
||||
// Add a normal file to the zip
|
||||
zip.entry(
|
||||
createReadStream(file.sourcePath),
|
||||
@@ -58,7 +56,6 @@ export async function createZipUploadStream(
|
||||
)
|
||||
} else {
|
||||
// add directory to zip
|
||||
core.debug(`Creating directory entry: ${file.destinationPath}`)
|
||||
zip.entry(
|
||||
null,
|
||||
{name: `${file.destinationPath}/`},
|
||||
|
||||
Reference in New Issue
Block a user