Skip to content

Support selecting individual submodules to update #1095

Open
@prein

Description

@prein

The goal is shorter checkout times for repos with many submodules. A particular job may need just one of many modules.
It would be an equivalent of looping over

git submodule update --init $submodule_name

where a list of submodule_name would come from parameter passed to actions/checkout like so (for example):

  - uses: actions/checkout@v3
        with:
          submodules:
            only:
              - foo
              - bar

Ideally the implementation would have also the possibility for blacklisting the modules (naming the ones to not to update) with equivalent of -c submodule."contrib/foo".update=none

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions