mirror of
https://forgejo.mixinet.net/actions/checkout.git
synced 2025-06-15 14:50:45 -06: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
|
@ -4,10 +4,12 @@ import * as gitSourceProvider from './git-source-provider'
|
|||
import * as inputHelper from './input-helper'
|
||||
import * as path from 'path'
|
||||
import * as stateHelper from './state-helper'
|
||||
import * as retryHelper from './retry-helper'
|
||||
|
||||
async function run(): Promise<void> {
|
||||
try {
|
||||
const sourceSettings = await inputHelper.getInputs()
|
||||
retryHelper.config(sourceSettings.maxAttempts, sourceSettings.minRetryInterval, sourceSettings.maxRetryInterval)
|
||||
|
||||
try {
|
||||
// Register problem matcher
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue