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