mirror of
https://github.com/actions/checkout.git
synced 2025-07-10 20:40:44 +00:00
Add fetchJobs option to parallelize submodule updates
This commit is contained in:
parent
2036a08e25
commit
ad5dc19390
9 changed files with 49 additions and 5 deletions
|
@ -88,6 +88,13 @@ export function getInputs(): IGitSourceSettings {
|
|||
}
|
||||
core.debug(`fetch depth = ${result.fetchDepth}`)
|
||||
|
||||
// Fetch jobs
|
||||
result.fetchJobs = Math.floor(Number(core.getInput('fetch-jobs') || '0'))
|
||||
if (isNaN(result.fetchJobs) || result.fetchJobs < 0) {
|
||||
result.fetchJobs = 0
|
||||
}
|
||||
core.debug(`fetch jobs = ${result.fetchJobs}`)
|
||||
|
||||
// LFS
|
||||
result.lfs = (core.getInput('lfs') || 'false').toUpperCase() === 'TRUE'
|
||||
core.debug(`lfs = ${result.lfs}`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue