|
|
|
@ -8110,15 +8110,15 @@ function downloadRepository(accessToken, owner, repo, ref, repositoryPath) {
|
|
|
|
|
}
|
|
|
|
|
console.log(`status=${response.status}`);
|
|
|
|
|
console.log(`headers=${JSON.stringify(response.headers)}`);
|
|
|
|
|
console.log(`data=${response.data}`);
|
|
|
|
|
console.log(`data=${JSON.stringify(response.data)}`);
|
|
|
|
|
for (const key of Object.keys(response.data)) {
|
|
|
|
|
console.log(`data['${key}']=${response.data[key]}`);
|
|
|
|
|
}
|
|
|
|
|
// console.log(`data=${response.data}`)
|
|
|
|
|
// console.log(`data=${JSON.stringify(response.data)}`)
|
|
|
|
|
// for (const key of Object.keys(response.data)) {
|
|
|
|
|
// console.log(`data['${key}']=${response.data[key]}`)
|
|
|
|
|
// }
|
|
|
|
|
const runnerTemp = process.env['RUNNER_TEMP'];
|
|
|
|
|
assert.ok(runnerTemp, 'RUNNER_TEMP not defined');
|
|
|
|
|
const archiveFile = path.join(runnerTemp, 'checkout.tar.gz');
|
|
|
|
|
yield fs.promises.writeFile(archiveFile, response.data);
|
|
|
|
|
yield fs.promises.writeFile(archiveFile, new Buffer(response.data));
|
|
|
|
|
yield exec.exec(`ls -la "${archiveFile}"`, [], {
|
|
|
|
|
cwd: repositoryPath
|
|
|
|
|
});
|
|
|
|
|