Documentation for Simbo's Packages
    Preparing search index...

    Function shouldRetryOnRateLimit

    • Decides whether to retry a request that hit a rate limit, and logs a warning with warning from @actions/core.

      Parameters

      • kind: RateLimitKind

        The kind of rate limit, for the log message.

      • retryAfter: number

        The seconds GitHub asks to wait.

      • request: RateLimitedRequest

        The request that hit the rate limit.

      • retryCount: number

        The number of retries so far.

      Returns boolean

      true to retry after the wait time, false after RATE_LIMIT_MAX_RETRIES retries.