Skip to content

Commit

Permalink
Merge pull request #85 from dabico/submodules
Browse files Browse the repository at this point in the history
Add `checkout-submodules` parameter
  • Loading branch information
slawekjaranowski authored Aug 5, 2024
2 parents 2f53a76 + 6e3103c commit 2b1e091
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 }} |
Expand Down
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}'
Expand Down

0 comments on commit 2b1e091

Please sign in to comment.