Skip to content

Commit

Permalink
Cut a release
Browse files Browse the repository at this point in the history
  • Loading branch information
imranismail committed Sep 6, 2022
1 parent 5bd9c67 commit aa978fb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
8 changes: 6 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,16 @@ let options = {
throttle: {
onRateLimit: (retryAfter, opts) => {
core.warning(`Request quota exhausted for request ${opts.method} ${opts.url}`);
core.warning(`${failFast ? 'Not r' : 'R'}etrying after ${retryAfter} seconds!`);
if (!failFast) {
core.warning(`Retrying after ${retryAfter} seconds!`);
}
return !failFast;
},
onAbuseLimit: (retryAfter, opts) => {
core.warning(`Abuse detected for request ${opts.method} ${opts.url}`);
core.warning(`${failFast ? 'Not r' : 'R'}etrying after ${retryAfter} seconds!`);
if (!failFast) {
core.warning(`Retrying after ${retryAfter} seconds!`);
}
return !failFast;
}
}
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ let options: OctokitOptions = {
core.warning(
`Request quota exhausted for request ${opts.method} ${opts.url}`
)
core.warning(
`${failFast ? 'Not r' : 'R'}etrying after ${retryAfter} seconds!`
)
if (!failFast) {
core.warning(`Retrying after ${retryAfter} seconds!`)
}
return !failFast
},
onAbuseLimit: (retryAfter: Number, opts: OctokitOptions) => {
core.warning(`Abuse detected for request ${opts.method} ${opts.url}`)
core.warning(
`${failFast ? 'Not r' : 'R'}etrying after ${retryAfter} seconds!`
)
if (!failFast) {
core.warning(`Retrying after ${retryAfter} seconds!`)
}
return !failFast
}
}
Expand Down

0 comments on commit aa978fb

Please sign in to comment.