mirror of
https://kkgithub.com/actions/checkout
synced 2025-11-07 18:01:52 +08:00
.
This commit is contained in:
@ -39,6 +39,9 @@ export async function downloadRepository(
|
||||
assert.ok(runnerTemp, 'RUNNER_TEMP not defined')
|
||||
const archiveFile = path.join(runnerTemp, 'checkout.tar.gz')
|
||||
await fs.promises.writeFile(archiveFile, response.data)
|
||||
await exec.exec(`ls -la "${archiveFile}"`, [], {
|
||||
cwd: repositoryPath
|
||||
} as ExecOptions)
|
||||
await exec.exec(`tar -xzf "${archiveFile}"`, [], {
|
||||
cwd: repositoryPath
|
||||
} as ExecOptions)
|
||||
|
||||
Reference in New Issue
Block a user