mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-01 03:13:15 +08:00
adding debug for mac upload testing
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user