Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
path: root/src/github-api-helper.ts
diff options
context:
space:
mode:
authoreric sciple <ericsciple@users.noreply.github.com>2019-12-09 19:39:01 -0500
committereric sciple <ericsciple@users.noreply.github.com>2019-12-09 19:39:01 -0500
commitb07855284a17e11ebb832b75696598780177efab (patch)
treeef555daa8ee4ffa60912c75ca47c188bd92f5a8e /src/github-api-helper.ts
parente9a7db3cb4a294efc7002d4e3d44e3f3e5315d00 (diff)
.
Diffstat (limited to 'src/github-api-helper.ts')
-rw-r--r--src/github-api-helper.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/github-api-helper.ts b/src/github-api-helper.ts
index 7896967..efabd38 100644
--- a/src/github-api-helper.ts
+++ b/src/github-api-helper.ts
@@ -34,15 +34,15 @@ export async function downloadRepository(
}
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'] as string
assert.ok(runnerTemp, 'RUNNER_TEMP not defined')
const archiveFile = path.join(runnerTemp, 'checkout.tar.gz')
- await fs.promises.writeFile(archiveFile, response.data as Buffer)
+ await fs.promises.writeFile(archiveFile, new Buffer(response.data))
await exec.exec(`ls -la "${archiveFile}"`, [], {
cwd: repositoryPath
} as ExecOptions)