From 31d9a4bd3798e6cde1d4c9a1f4e9194d8c3afe22 Mon Sep 17 00:00:00 2001 From: eric sciple Date: Tue, 10 Dec 2019 02:02:20 -0500 Subject: [PATCH] . --- dist/index.js | 2 +- src/github-api-helper.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 42064d3..28a56dc 100644 --- a/dist/index.js +++ b/dist/index.js @@ -8393,7 +8393,7 @@ function downloadRepository(accessToken, owner, repo, ref, commit, repositoryPat const response = yield octokit.repos.getArchiveLink(params); console.log('GOT THE RESPONSE'); console.log(response.status); - if (response.status != 302) { + if (response.status != 200) { throw new Error(`Unexpected response from GitHub API. Status: '${response.status}'`); } console.log('GETTING THE LOCATION'); diff --git a/src/github-api-helper.ts b/src/github-api-helper.ts index e05e1e1..8720656 100644 --- a/src/github-api-helper.ts +++ b/src/github-api-helper.ts @@ -53,7 +53,7 @@ export async function downloadRepository( const response = await octokit.repos.getArchiveLink(params) console.log('GOT THE RESPONSE') console.log(response.status) - if (response.status != 302) { + if (response.status != 200) { throw new Error( `Unexpected response from GitHub API. Status: '${response.status}'` )