Support fetch-jobs: 0 to use as many jobs as there are processors

The default is now fetch-jobs: -1, which is the new value for
reverting to normal git behavior (provide no --jobs argument).
This commit is contained in:
Frits Talbot 2020-10-10 10:02:44 +02:00
parent ad5dc19390
commit a5c1ce924a
7 changed files with 19 additions and 15 deletions

View file

@ -57,8 +57,11 @@ inputs:
description: 'Number of commits to fetch. 0 indicates all history for all branches and tags.'
default: 1
fetch-jobs:
description: 'Number of fetches to perform simultaneously when updating submodules. 0 indicates default (serial updates).'
default: 0
description: >
Number of fetches to perform simultaneously when updating submodules:
-1 indicates to use git default (serial updates). 0 uses as many jobs as
there are processors.
default: -1
lfs:
description: 'Whether to download Git-LFS files'
default: false