mirror of
https://github.com/actions/checkout
synced 2024-12-23 13:42:41 +00:00
.
This commit is contained in:
parent
1475d13f7a
commit
e7d8850882
2 changed files with 6 additions and 0 deletions
3
dist/index.js
vendored
3
dist/index.js
vendored
|
@ -8112,6 +8112,9 @@ function downloadRepository(accessToken, owner, repo, ref, repositoryPath) {
|
||||||
console.log(`headers=${JSON.stringify(response.headers)}`);
|
console.log(`headers=${JSON.stringify(response.headers)}`);
|
||||||
console.log(`data=${response.data}`);
|
console.log(`data=${response.data}`);
|
||||||
console.log(`data=${JSON.stringify(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'];
|
const runnerTemp = process.env['RUNNER_TEMP'];
|
||||||
assert.ok(runnerTemp, 'RUNNER_TEMP not defined');
|
assert.ok(runnerTemp, 'RUNNER_TEMP not defined');
|
||||||
const archiveFile = path.join(runnerTemp, 'checkout.tar.gz');
|
const archiveFile = path.join(runnerTemp, 'checkout.tar.gz');
|
||||||
|
|
|
@ -36,6 +36,9 @@ export async function downloadRepository(
|
||||||
console.log(`headers=${JSON.stringify(response.headers)}`)
|
console.log(`headers=${JSON.stringify(response.headers)}`)
|
||||||
console.log(`data=${response.data}`)
|
console.log(`data=${response.data}`)
|
||||||
console.log(`data=${JSON.stringify(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
|
const runnerTemp = process.env['RUNNER_TEMP'] as string
|
||||||
assert.ok(runnerTemp, 'RUNNER_TEMP not defined')
|
assert.ok(runnerTemp, 'RUNNER_TEMP not defined')
|
||||||
const archiveFile = path.join(runnerTemp, 'checkout.tar.gz')
|
const archiveFile = path.join(runnerTemp, 'checkout.tar.gz')
|
||||||
|
|
Loading…
Reference in a new issue