From ae66cc3fdf9e31fb9f188fda02d9f9d89390a9f6 Mon Sep 17 00:00:00 2001 From: nathan wagner Date: Tue, 17 Sep 2024 15:26:45 -0400 Subject: [PATCH] throwing an error when the github API response is a JSON object. --- dist/setup/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index f1e3e2970..eedf14a80 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -10063,7 +10063,11 @@ function getManifestFromRepo(owner, repo, auth, branch = 'master') { 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;