1
0
Fork 0

Prevent "too many open files" in artifact upload

See https://www.archiverjs.com/docs/archiver/#file
pull/1771/head
Robin Munn 2024-07-23 17:55:45 +07:00
parent 49927e464a
commit 9517cdf52d
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ export async function createZipUploadStream(
for (const file of uploadSpecification) { for (const file of uploadSpecification) {
if (file.sourcePath !== null) { if (file.sourcePath !== null) {
// Add a normal file to the zip // Add a normal file to the zip
zip.append(createReadStream(file.sourcePath), { zip.file(file.sourcePath, {
name: file.destinationPath name: file.destinationPath
}) })
} else { } else {