diff --git a/dist/index.js b/dist/index.js index 28a56dc..f49291a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -8392,7 +8392,8 @@ function downloadRepository(accessToken, owner, repo, ref, commit, repositoryPat }; const response = yield octokit.repos.getArchiveLink(params); 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) { throw new Error(`Unexpected response from GitHub API. Status: '${response.status}'`); } diff --git a/src/github-api-helper.ts b/src/github-api-helper.ts index 8720656..3407c25 100644 --- a/src/github-api-helper.ts +++ b/src/github-api-helper.ts @@ -52,7 +52,8 @@ export async function downloadRepository( } const response = await octokit.repos.getArchiveLink(params) 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) { throw new Error( `Unexpected response from GitHub API. Status: '${response.status}'`