diff --git a/dist/index.js b/dist/index.js index 9af2575..f5b5fc1 100644 --- a/dist/index.js +++ b/dist/index.js @@ -31195,7 +31195,7 @@ function run() { core.debug(`S3 download uri: s3://${s3Bucket}/${fileObject.Key}`); const readStream = s3.getObject(getObjectParams).createReadStream(); readStream.pipe(writeStream); - writeStream.close(); + readStream.unpipe(); core.info(`Finished download for ${localKey}`); } }); diff --git a/src/download-artifact.ts b/src/download-artifact.ts index 3dda87b..1ccd5a5 100644 --- a/src/download-artifact.ts +++ b/src/download-artifact.ts @@ -55,7 +55,7 @@ async function run(): Promise { core.debug(`S3 download uri: s3://${s3Bucket}/${fileObject.Key}`) const readStream = s3.getObject(getObjectParams).createReadStream() readStream.pipe(writeStream) - writeStream.close() + readStream.unpipe() core.info(`Finished download for ${localKey}`) } })