1
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2024-12-27 04:55:52 +00:00
This commit is contained in:
eric sciple 2019-12-09 19:37:05 -05:00
parent 1475d13f7a
commit e7d8850882
2 changed files with 6 additions and 0 deletions

3
dist/index.js vendored
View file

@ -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');

View file

@ -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')