Skip to content
package

GitHub Action

Checkout submodules

2.1.1 Latest version

Checkout submodules

package

Checkout submodules

Recursively checks out any submodules in your repository

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Checkout submodules

uses: textbook/git-checkout-submodule-action@2.1.1

Learn more about this action in textbook/git-checkout-submodule-action

Choose a version

Checkout Submodule Action

Recursively checks out any submodules in your repository.

steps:
- name: Checkout submodules
  uses: textbook/git-checkout-submodule-action@master

New in version 2.1.0. You can optionally set the --remote flag:

steps:
- name: Checkout submodules
  uses: textbook/git-checkout-submodule-action@master
  with:
    remote: true

Alternatives

You can use git Actions instead:

steps:
- name: Checkout submodules
  uses: srt32/git-actions@v0.0.3
  with:
    args: git submodule update --init --recursive