From b4489f01dce88a1400db9c7b4de4383d94fd775d Mon Sep 17 00:00:00 2001 From: Binrui Dong Date: Fri, 31 Mar 2023 10:47:24 +0800 Subject: [PATCH] Update github-api-helper.ts --- src/github-api-helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}` )