From 203bdd77327f8ff6d776fb3b215774ec3d58b0f1 Mon Sep 17 00:00:00 2001 From: Robin Munn Date: Tue, 23 Jul 2024 17:55:45 +0700 Subject: [PATCH] Prevent "too many open files" in artifact upload See https://www.archiverjs.com/docs/archiver/#file --- src/internal/upload/zip.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/upload/zip.ts b/src/internal/upload/zip.ts index 5a92311..4b9c43b 100644 --- a/src/internal/upload/zip.ts +++ b/src/internal/upload/zip.ts @@ -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 {