1
0
Fork 0

catching error message from github that's in Json format

pull/1832/head
Nathan Wagner 2024-09-25 02:01:42 +00:00
parent 6dd369c0e6
commit ebf7faca1b
1 changed files with 5 additions and 2 deletions

View File

@ -627,8 +627,11 @@ export async function getManifestFromRepo(
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')
}
} }
export async function findFromManifest( export async function findFromManifest(