mirror of
https://github.com/s4u/setup-maven-action.git
synced 2026-02-18 00:00:11 +08:00
Add option for checking out repository submodules
This commit is contained in:
@ -29,6 +29,7 @@ For default values you only need:
|
|||||||
| params | destination | default |
|
| params | destination | default |
|
||||||
|------------------------------|---------------------|--------------------------|
|
|------------------------------|---------------------|--------------------------|
|
||||||
| checkout-fetch-depth | fetch-depth | |
|
| checkout-fetch-depth | fetch-depth | |
|
||||||
|
| checkout-submodules | submodules | |
|
||||||
| checkout-path | path | |
|
| checkout-path | path | |
|
||||||
| checkout-ref | ref | |
|
| checkout-ref | ref | |
|
||||||
| checkout-repository | repository | ${{ github.repository }} |
|
| checkout-repository | repository | ${{ github.repository }} |
|
||||||
|
|||||||
@ -12,6 +12,10 @@ inputs:
|
|||||||
description: 'Number of commits to fetch'
|
description: 'Number of commits to fetch'
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
|
checkout-submodules:
|
||||||
|
description: 'Whether to fetch submodules'
|
||||||
|
required: false
|
||||||
|
|
||||||
checkout-path:
|
checkout-path:
|
||||||
description: 'Relative path under $GITHUB_WORKSPACE to place the repository'
|
description: 'Relative path under $GITHUB_WORKSPACE to place the repository'
|
||||||
required: false
|
required: false
|
||||||
@ -105,6 +109,7 @@ runs:
|
|||||||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
with:
|
with:
|
||||||
fetch-depth: '${{ inputs.checkout-fetch-depth }}'
|
fetch-depth: '${{ inputs.checkout-fetch-depth }}'
|
||||||
|
submodules: '${{ inputs.checkout-submodules }}'
|
||||||
path: '${{ inputs.checkout-path }}'
|
path: '${{ inputs.checkout-path }}'
|
||||||
persist-credentials: '${{ inputs.checkout-persist-credentials }}'
|
persist-credentials: '${{ inputs.checkout-persist-credentials }}'
|
||||||
ref: '${{ inputs.checkout-ref }}'
|
ref: '${{ inputs.checkout-ref }}'
|
||||||
|
|||||||
Reference in New Issue
Block a user