4
0
Fork 0
mirror of https://github.com/actions/setup-python.git synced 2025-11-07 05:26:56 +00:00

Compare commits

...

2 commits

Author SHA1 Message Date
Nathan Wagner
9d9d24d86b
Merge ae66cc3fdf into bba65e51ff 2025-10-21 14:54:58 +02:00
nathan wagner
ae66cc3fdf throwing an error when the github API response is a JSON object. 2024-09-17 15:26:45 -04:00

6
dist/setup/index.js vendored
View file

@ -11027,7 +11027,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;