0
0
Fork 0
mirror of https://github.com/actions/checkout.git synced 2024-12-22 23:55:47 +02:00
This commit is contained in:
eric sciple 2019-12-10 02:02:20 -05:00
parent 154a05918b
commit 31d9a4bd37
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View file

@ -8393,7 +8393,7 @@ 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(response.status);
if (response.status != 302) { 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}'`);
} }
console.log('GETTING THE LOCATION'); console.log('GETTING THE LOCATION');

View file

@ -53,7 +53,7 @@ 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(response.status)
if (response.status != 302) { 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}'`
) )