Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support selecting individual submodules to update #1095

Open
prein opened this issue Jan 11, 2023 · 4 comments
Open

Support selecting individual submodules to update #1095

prein opened this issue Jan 11, 2023 · 4 comments

Comments

@prein
Copy link

prein commented Jan 11, 2023

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

@nicola-lunghi
Copy link

+1 on this

@oerp-odoo
Copy link

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).

@Garett-MacGowan
Copy link

+1

@danilapog
Copy link

+1 thats usefull

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants