diff options
| author | eric sciple <ericsciple@users.noreply.github.com> | 2019-12-10 01:53:49 -0500 |
|---|---|---|
| committer | eric sciple <ericsciple@users.noreply.github.com> | 2019-12-10 01:53:49 -0500 |
| commit | c9225b30cfa7adbe74d1e7bd82b7e1fdd4d39aa8 (patch) | |
| tree | bccab7ca4742074b9e023a1b1a160fbb52b58197 | |
| parent | e30dd501a41b65ab64ee56f688656f135b1838b3 (diff) | |
.
| -rw-r--r-- | dist/index.js | 1 | ||||
| -rw-r--r-- | src/github-api-helper.ts | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/dist/index.js b/dist/index.js index 0ded637..25b27e7 100644 --- a/dist/index.js +++ b/dist/index.js @@ -8404,6 +8404,7 @@ function downloadRepository(accessToken, owner, repo, ref, commit, repositoryPat yield downloadFile(archiveUrl, fileStream); } finally { + fileStream.end(); yield fileStreamClosed; } // return Buffer.from(response.data) // response.data is ArrayBuffer diff --git a/src/github-api-helper.ts b/src/github-api-helper.ts index 764156c..37a467d 100644 --- a/src/github-api-helper.ts +++ b/src/github-api-helper.ts @@ -69,6 +69,7 @@ export async function downloadRepository( core.info('Downloading the archive') // Do not print the archive URL because it has an embedded token await downloadFile(archiveUrl, fileStream) } finally { + fileStream.end() await fileStreamClosed } |
