mirror of
https://github.com/actions/setup-python.git
synced 2024-11-22 07:00:57 -05:00
throwing an error when the github API response is a JSON object.
This commit is contained in:
parent
70dcb22d26
commit
ae66cc3fdf
1 changed files with 5 additions and 1 deletions
4
dist/setup/index.js
vendored
4
dist/setup/index.js
vendored
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue