1
0
Fork 0
users/ericsciple/m163tarball_efficient_download
eric sciple 2019-12-09 19:16:06 -05:00
parent 306dc1c898
commit afff79a5a2
1 changed files with 3 additions and 1 deletions

4
dist/index.js vendored
View File

@ -8115,7 +8115,9 @@ function downloadRepository(accessToken, owner, repo, ref, repositoryPath) {
assert.ok(runnerTemp, 'RUNNER_TEMP not defined'); assert.ok(runnerTemp, 'RUNNER_TEMP not defined');
const archiveFile = path.join(runnerTemp, 'checkout.tar.gz'); const archiveFile = path.join(runnerTemp, 'checkout.tar.gz');
yield fs.promises.writeFile(archiveFile, response.data); yield fs.promises.writeFile(archiveFile, response.data);
yield exec.exec(`tar -xzf "${archiveFile}"`, [], { cwd: repositoryPath }); yield exec.exec(`tar -xzf "${archiveFile}"`, [], {
cwd: repositoryPath
});
}); });
} }
exports.downloadRepository = downloadRepository; exports.downloadRepository = downloadRepository;