1
0
Fork 0
mirror of https://github.com/actions/setup-python.git synced 2024-09-19 16:46:43 +00:00

throwing an error when the github API response is a JSON object.

This commit is contained in:
nathan wagner 2024-09-17 15:26:45 -04:00
parent 70dcb22d26
commit ae66cc3fdf

6
dist/setup/index.js vendored
View file

@ -10063,7 +10063,11 @@ function getManifestFromRepo(owner, repo, auth, branch = 'master') {
core.debug('Invalid json'); core.debug('Invalid json');
} }
} }
return releases; if (!releases.hasOwnProperty('documentation_url')){
return releases;
}else{
throw new Error ('github API rate limiting response in JSON format')
}
}); });
} }
exports.getManifestFromRepo = getManifestFromRepo; exports.getManifestFromRepo = getManifestFromRepo;