mirror of
https://github.com/ow-mods/ow-mod-db.git
synced 2025-12-11 20:15:24 +01:00
lower update frequency
This commit is contained in:
parent
94ccc0f79f
commit
757498e81e
2
.github/workflows/update-releases.yml
vendored
2
.github/workflows/update-releases.yml
vendored
@ -2,7 +2,7 @@ name: Update Releases
|
||||
concurrency: update-releases
|
||||
on:
|
||||
schedule:
|
||||
- cron: "*/5 * * * *"
|
||||
- cron: "*/30 * * * *"
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user