Prevent "too many open files" in artifact upload

See https://www.archiverjs.com/docs/archiver/#file
This commit is contained in:
Robin Munn 2024-07-23 17:55:45 +07:00
parent 49927e464a
commit 9517cdf52d

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 {