mirror of
https://code.forgejo.org/actions/checkout.git
synced 2024-11-30 02:01:03 -05:00
.
This commit is contained in:
parent
34b9c46c61
commit
1475d13f7a
2 changed files with 4 additions and 4 deletions
4
dist/index.js
vendored
4
dist/index.js
vendored
|
@ -8110,8 +8110,8 @@ function downloadRepository(accessToken, owner, repo, ref, repositoryPath) {
|
||||||
}
|
}
|
||||||
console.log(`status=${response.status}`);
|
console.log(`status=${response.status}`);
|
||||||
console.log(`headers=${JSON.stringify(response.headers)}`);
|
console.log(`headers=${JSON.stringify(response.headers)}`);
|
||||||
console.log(`data=${JSON.stringify(typeof response.data)}`);
|
console.log(`data=${response.data}`);
|
||||||
console.log(`data.length=${response.data.length}`);
|
console.log(`data=${JSON.stringify(response.data)}`);
|
||||||
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');
|
||||||
|
|
|
@ -34,8 +34,8 @@ export async function downloadRepository(
|
||||||
}
|
}
|
||||||
console.log(`status=${response.status}`)
|
console.log(`status=${response.status}`)
|
||||||
console.log(`headers=${JSON.stringify(response.headers)}`)
|
console.log(`headers=${JSON.stringify(response.headers)}`)
|
||||||
console.log(`data=${JSON.stringify(typeof response.data)}`)
|
console.log(`data=${response.data}`)
|
||||||
console.log(`data.length=${(response.data as Buffer).length}`)
|
console.log(`data=${JSON.stringify(response.data)}`)
|
||||||
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