mirror of
https://github.com/actions/checkout.git
synced 2024-11-29 04:15:23 +01:00
.
This commit is contained in:
parent
59bb2dd7cd
commit
096b500552
1 changed files with 0 additions and 8 deletions
|
@ -72,11 +72,6 @@ export async function downloadRepository(
|
||||||
// }
|
// }
|
||||||
// })
|
// })
|
||||||
|
|
||||||
// await fs.promises.writeFile(archivePath, raw)
|
|
||||||
// // await exec.exec(`ls -la "${archiveFile}"`, [], {
|
|
||||||
// // cwd: repositoryPath
|
|
||||||
// // } as ExecOptions)
|
|
||||||
|
|
||||||
// Extract archive
|
// Extract archive
|
||||||
const extractPath = path.join(runnerTemp, `checkout`)
|
const extractPath = path.join(runnerTemp, `checkout`)
|
||||||
await io.rmRF(extractPath)
|
await io.rmRF(extractPath)
|
||||||
|
@ -86,9 +81,6 @@ export async function downloadRepository(
|
||||||
} else {
|
} else {
|
||||||
await toolCache.extractTar(archivePath, extractPath)
|
await toolCache.extractTar(archivePath, extractPath)
|
||||||
}
|
}
|
||||||
// await exec.exec(`tar -xzf "${archiveFile}"`, [], {
|
|
||||||
// cwd: extractPath
|
|
||||||
// } as ExecOptions)
|
|
||||||
|
|
||||||
// Determine the real directory to copy (ignore extra dir at root of the archive)
|
// Determine the real directory to copy (ignore extra dir at root of the archive)
|
||||||
const archiveFileNames = await fs.promises.readdir(extractPath)
|
const archiveFileNames = await fs.promises.readdir(extractPath)
|
||||||
|
|
Loading…
Reference in a new issue