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:
parent
2d7d9f7ff5
commit
4dca78049b
8 changed files with 85 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue