mirror of
https://github.com/actions/checkout.git
synced 2024-12-19 21:19:05 +00:00
.
This commit is contained in:
parent
4a1fa615de
commit
eed20d30d5
1
dist/index.js
vendored
1
dist/index.js
vendored
@ -8392,6 +8392,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);
|
||||||
if (response.status != 302) {
|
if (response.status != 302) {
|
||||||
throw new Error(`Unexpected response from GitHub API. Status: '${response.status}'`);
|
throw new Error(`Unexpected response from GitHub API. Status: '${response.status}'`);
|
||||||
}
|
}
|
||||||
|
@ -52,6 +52,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)
|
||||||
if (response.status != 302) {
|
if (response.status != 302) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Unexpected response from GitHub API. Status: '${response.status}'`
|
`Unexpected response from GitHub API. Status: '${response.status}'`
|
||||||
|
Loading…
Reference in New Issue
Block a user