Skip to content

Commit

Permalink
Merge pull request #1771 from rmunn/fix-too-many-open-files
Browse files Browse the repository at this point in the history
Prevent "too many open files" in artifact upload
  • Loading branch information
robherley authored Jul 31, 2024
2 parents 90d9783 + 7c61054 commit 7463cf3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/artifact/src/internal/upload/zip.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as stream from 'stream'
import * as archiver from 'archiver'
import * as core from '@actions/core'
import {createReadStream} from 'fs'
import {UploadZipSpecification} from './upload-zip-specification'
import {getUploadChunkSize} from '../shared/config'

Expand Down Expand Up @@ -44,7 +43,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 {
Expand Down

0 comments on commit 7463cf3

Please sign in to comment.