mirror of https://github.com/actions/toolkit
cleaning up debug statements
parent
c14e304555
commit
90ee020ccd
|
@ -51,6 +51,7 @@ export async function uploadZipToBlobStorage(
|
|||
zipUploadStream.pipe(uploadStream) // This stream is used for the upload
|
||||
zipUploadStream.pipe(hashStream).setEncoding('hex') // This stream is used to compute a hash of the zip content that gets used. Integrity check
|
||||
|
||||
core.info('Beginning upload of artifact content to blob storage')
|
||||
try {
|
||||
await blockBlobClient.uploadStream(
|
||||
uploadStream,
|
||||
|
|
|
@ -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}/`},
|
||||
|
|
Loading…
Reference in New Issue