mirror of https://github.com/actions/toolkit
Prevent "too many open files" in artifact upload
See https://www.archiverjs.com/docs/archiver/#filepull/1771/head
parent
49927e464a
commit
9517cdf52d
|
@ -44,7 +44,7 @@ export async function createZipUploadStream(
|
|||
for (const file of uploadSpecification) {
|
||||
if (file.sourcePath !== null) {
|
||||
// Add a normal file to the zip
|
||||
zip.append(createReadStream(file.sourcePath), {
|
||||
zip.file(file.sourcePath, {
|
||||
name: file.destinationPath
|
||||
})
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue