From 1dd391e239f639c9c632b92e30f3e48c4b84f516 Mon Sep 17 00:00:00 2001 From: Niclas Thall Date: Wed, 11 Dec 2024 11:02:43 +0100 Subject: [PATCH] feat(workflow): add option to checkout submodules in repo Adds a new input to be able to checkout repos with submodules. https://github.com/actions/checkout/blob/cbb722410c2e876e24abbe8de2cc27693e501dcb/README.md?plain=1#L117 --- actions/setup/action.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/actions/setup/action.yml b/actions/setup/action.yml index b62c5547..ffe789bd 100644 --- a/actions/setup/action.yml +++ b/actions/setup/action.yml @@ -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 @@ -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