1
0
Fork 0
users/ericsciple/m163tarball_efficient_download
eric sciple 2019-12-10 01:53:49 -05:00
parent eed20d30d5
commit 7a2b445a4b
2 changed files with 2 additions and 0 deletions

1
dist/index.js vendored
View File

@ -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

View File

@ -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
}