1
0
Fork 0
mirror of https://github.com/actions/checkout.git synced 2025-07-07 20:22:54 +00:00

add options to set max attempts and intervals

This commit is contained in:
Clansty 2024-09-02 23:46:54 +08:00
parent 2d7d9f7ff5
commit 4dca78049b
No known key found for this signature in database
GPG key ID: 3A6BE8BAF2EDE134
8 changed files with 85 additions and 3 deletions

View file

@ -161,5 +161,10 @@ export async function getInputs(): Promise<IGitSourceSettings> {
result.githubServerUrl = core.getInput('github-server-url')
core.debug(`GitHub Host URL = ${result.githubServerUrl}`)
// Retry
result.maxAttempts = parseInt(core.getInput('max-attempts') || '3')
result.minRetryInterval = parseInt(core.getInput('min-retry-interval') || '10')
result.maxRetryInterval = parseInt(core.getInput('max-retry-interval') || '20')
return result
}