adding debug for mac upload testing

This commit is contained in:
Vallie Joseph
2024-03-15 14:53:33 +00:00
parent ef77c9d60b
commit 1f22f9faf9
4 changed files with 37 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
import whyIsNodeRunning from 'why-is-node-running'
import * as core from '@actions/core'
import {
UploadArtifactOptions,
@@ -107,6 +108,13 @@ export async function uploadArtifact(
core.info(
`Artifact ${name}.zip successfully finalized. Artifact ID ${artifactId}`
)
if (core.isDebug()) {
setTimeout(function () {
core.debug('Processes keeping upload stream running:')
whyIsNodeRunning()
}, 500)
}
//
return {
size: uploadResult.uploadSize,

View File

@@ -29,7 +29,6 @@ export async function createZipUploadStream(
core.debug(
`Creating Artifact archive with compressionLevel: ${compressionLevel}`
)
const zip = archiver.create('zip', {
highWaterMark: getUploadChunkSize(),
zlib: {level: compressionLevel}