lower update frequency

This commit is contained in:
Raicuparta 2022-11-04 20:17:26 +00:00
parent 94ccc0f79f
commit 757498e81e
2 changed files with 3 additions and 6 deletions

View File

@ -2,7 +2,7 @@ name: Update Releases
concurrency: update-releases
on:
schedule:
- cron: "*/5 * * * *"
- cron: "*/30 * * * *"
workflow_dispatch:
push:
branches:

View File

@ -18,16 +18,13 @@ function createOctokit() {
`Request quota exhausted for request ${options.method} ${options.url}`
);
rateLimitReached = true;
if (options.request.retryCount === 0) {
// only retries once
console.info(`Retrying after ${retryAfter} seconds!`);
return true;
}
console.warn(
"Rate limit reached and no more retries left, set rateLimitReached flag."
);
rateLimitReached = true;
},
onAbuseLimit: (retryAfter: number, options: any) => {
// does not retry, only logs a warning