output retryafter for secondary rate limit

This commit is contained in:
Peter Evans committed 2024-08-27 21:20:49 +01:00
1 parent 59815b27ea
commit f5bdca7bbf
2 files changed
+4 -2

No files matched your search

+2 -1
View File
@@ -1498,8 +1498,9 @@ exports.throttleOptions = {
return true;
}
},
onSecondaryRateLimit: (_, options) => {
onSecondaryRateLimit: (retryAfter, options) => {
core.warning(`Hit secondary rate limit for request ${options.method} ${options.url}`);
core.warning(`Requests may be retried after ${retryAfter} seconds.`);
}
};
const proxyFetch = (proxyUrl) => (url, opts) => {
+2 -1
View File
@@ -25,10 +25,11 @@ export const throttleOptions = {
return true
}
},
onSecondaryRateLimit: (_, options) => {
onSecondaryRateLimit: (retryAfter, options) => {
core.warning(
`Hit secondary rate limit for request ${options.method} ${options.url}`
)
core.warning(`Requests may be retried after ${retryAfter} seconds.`)
}
}