Add option for checking out repository submodules

This commit is contained in:
dabico 2024-07-16 16:31:27 +02:00
parent 2f53a7669c
commit 6e3103c027
No known key found for this signature in database
GPG Key ID: DF50683FCABFD29B
2 changed files with 6 additions and 0 deletions

View File

@ -29,6 +29,7 @@ For default values you only need:
| params | destination | default |
|------------------------------|---------------------|--------------------------|
| checkout-fetch-depth | fetch-depth | |
| checkout-submodules | submodules | |
| checkout-path | path | |
| checkout-ref | ref | |
| checkout-repository | repository | ${{ github.repository }} |

View File

@ -12,6 +12,10 @@ inputs:
description: 'Number of commits to fetch'
required: false
checkout-submodules:
description: 'Whether to fetch submodules'
required: false
checkout-path:
description: 'Relative path under $GITHUB_WORKSPACE to place the repository'
required: false
@ -105,6 +109,7 @@ runs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: '${{ inputs.checkout-fetch-depth }}'
submodules: '${{ inputs.checkout-submodules }}'
path: '${{ inputs.checkout-path }}'
persist-credentials: '${{ inputs.checkout-persist-credentials }}'
ref: '${{ inputs.checkout-ref }}'