From 855a44af6d5f17fe8b6704c52252e2078570166e Mon Sep 17 00:00:00 2001 From: Eli Uriegas Date: Wed, 19 May 2021 12:08:12 -0700 Subject: [PATCH] close -> unpipe Signed-off-by: Eli Uriegas --- dist/index.js | 2 +- src/download-artifact.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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}`) } })