mirror of https://github.com/actions/toolkit
catching error message from github that's in Json format
parent
6dd369c0e6
commit
ebf7faca1b
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue