diff --git a/src/github-api-helper.ts b/src/github-api-helper.ts index 2beff6f2d..19616c381 100644 --- a/src/github-api-helper.ts +++ b/src/github-api-helper.ts @@ -134,7 +134,7 @@ async function downloadArchive( repo: repo, ref: commit || ref }) - if (response.status != 302) { + if (response.status != 200) { throw new Error( `Unexpected response from GitHub API. Status: ${response.status}, Data: ${response.data}` )