Skip to content

Commit

Permalink
feat(workflow): add option to checkout submodules in repo
Browse files Browse the repository at this point in the history
  • Loading branch information
thall committed Dec 11, 2024
1 parent 334ac69 commit 1dd391e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ inputs:
description: Number of commits to fetch. 0 indicates all history for all branches and tags.
default: 0

checkout-submodules:
description: "Whether to checkout submodules: `true` to checkout submodules or `recursive` to recursively checkout submodules."
default: ''

runs:
using: composite

Expand All @@ -35,6 +39,7 @@ runs:
with:
# Needed for conventional commit linting.
fetch-depth: ${{ inputs.fetch-depth }}
submodules: ${{ inputs.checkout-submodules }}

- name: Set up Go
uses: actions/setup-go@v5
Expand Down

0 comments on commit 1dd391e

Please sign in to comment.