adjust string for handling rate limit error

This commit is contained in:
nickfyson 2025-03-06 10:26:28 +00:00
parent 608ccd6cd9
commit 7b7ed63503
3 changed files with 3 additions and 3 deletions

2
lib/api-client.js generated
View file

@ -206,7 +206,7 @@ async function deleteActionsCache(id) {
}
function wrapApiConfigurationError(e) {
if ((0, util_1.isHTTPError)(e)) {
if (e.message.includes("API rate limit exceeded for site ID installation") ||
if (e.message.includes("API rate limit exceeded for installation") ||
e.message.includes("commit not found") ||
/^ref .* not found in this repository$/.test(e.message)) {
return new util_1.ConfigurationError(e.message);

File diff suppressed because one or more lines are too long