1
0
Fork 0

Prevent "too many open files" in artifact upload

See https://www.archiverjs.com/docs/archiver/#file
pull/1723/head
Robin Munn 2024-04-29 11:22:16 +07:00
parent cce93c0202
commit 5f62f1e65b
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.stats.isDirectory()) { if (!file.stats.isDirectory()) {
// 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,
stats: file.stats, stats: file.stats,
mode: file.stats.mode mode: file.stats.mode