1
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2024-11-27 22:49:17 +01:00
This commit is contained in:
eric sciple 2019-12-10 02:07:58 -05:00
parent 31d9a4bd37
commit 0b63af4c8c
2 changed files with 4 additions and 2 deletions

3
dist/index.js vendored
View file

@ -8392,7 +8392,8 @@ function downloadRepository(accessToken, owner, repo, ref, commit, repositoryPat
}; };
const response = yield octokit.repos.getArchiveLink(params); const response = yield octokit.repos.getArchiveLink(params);
console.log('GOT THE RESPONSE'); console.log('GOT THE RESPONSE');
console.log(response.status); console.log(`status=${response.status}`);
console.log(`headers=${JSON.stringify(response.headers)}`);
if (response.status != 200) { if (response.status != 200) {
throw new Error(`Unexpected response from GitHub API. Status: '${response.status}'`); throw new Error(`Unexpected response from GitHub API. Status: '${response.status}'`);
} }

View file

@ -52,7 +52,8 @@ export async function downloadRepository(
} }
const response = await octokit.repos.getArchiveLink(params) const response = await octokit.repos.getArchiveLink(params)
console.log('GOT THE RESPONSE') console.log('GOT THE RESPONSE')
console.log(response.status) console.log(`status=${response.status}`)
console.log(`headers=${JSON.stringify(response.headers)}`)
if (response.status != 200) { if (response.status != 200) {
throw new Error( throw new Error(
`Unexpected response from GitHub API. Status: '${response.status}'` `Unexpected response from GitHub API. Status: '${response.status}'`