mirror of
https://github.com/actions/checkout.git
synced 2024-12-23 00:57:44 +01:00
.
This commit is contained in:
parent
1475d13f7a
commit
e7d8850882
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 New Issue
Block a user