3
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2025-04-24 04:15:33 +00:00
This commit is contained in:
eric sciple 2019-12-09 20:07:49 -05:00
parent 54a7542872
commit 35bb830cfd
2 changed files with 3 additions and 3 deletions

View file

@ -43,7 +43,7 @@ export async function downloadRepository(
assert.ok(runnerTemp, 'RUNNER_TEMP not defined')
const archiveFile = path.join(runnerTemp, 'checkout-archive.tar.gz')
await io.rmRF(archiveFile)
await fs.promises.writeFile(archiveFile, new Buffer(response.data))
await fs.promises.writeFile(archiveFile, Buffer.from(response.data))
await exec.exec(`ls -la "${archiveFile}"`, [], {
cwd: repositoryPath
} as ExecOptions)