Compare commits

...

2 Commits

Author SHA1 Message Date
Nathan Wagner 1d8b3dfc4e
Merge ae66cc3fdf into 9c76e71650 2024-10-22 13:55:09 +05:45
nathan wagner ae66cc3fdf throwing an error when the github API response is a JSON object. 2024-09-17 15:26:45 -04:00
1 changed files with 5 additions and 1 deletions

4
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');
} }
} }
if (!releases.hasOwnProperty('documentation_url')){
return releases; return releases;
}else{
throw new Error ('github API rate limiting response in JSON format')
}
}); });
} }
exports.getManifestFromRepo = getManifestFromRepo; exports.getManifestFromRepo = getManifestFromRepo;