checkout icon indicating copy to clipboard operation
checkout copied to clipboard

Support selecting individual submodules to update

Open prein opened this issue 2 years ago • 4 comments

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

prein avatar Jan 11 '23 10:01 prein

+1 on this

nicola-lunghi avatar Jan 25 '23 11:01 nicola-lunghi

For my case, I have monororepo, so specific projects only need some submodules, not all. Now its kind of redundant to checkout all of them (and its very slow as well).

oerp-odoo avatar Jan 19 '24 12:01 oerp-odoo

+1

Garett-MacGowan avatar Feb 23 '24 15:02 Garett-MacGowan