Skip to content

This is a GitHub action for checking out submodules defined within a repository.

License

Notifications You must be signed in to change notification settings

kilianweisl/submodule-checkout

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Submodule Checkout Action

This action checks out a private or public submodule hosted within GitHub.

Usage

- uses: actions/checkout@v3
- uses: kilianweisl/[email protected]

Private Repositories

If you want to check out private repositories, provide an additional (private) SSH-Key:

- uses: actions/checkout@v3
- uses: kilianweisl/[email protected]
  with:
    ssh-key: '${{ secrets.SSH_PRIVATE_KEY }}'

Make sure, that SSH_PRIVATE_KEY is added as secret variable in the parent repository and the corresponding public key as "deploy key" in the submodule repository (Settings->Deploy keys).

ChangeLog

The original code has been updated in order to make it work:

  • New GitHub RSA signature
  • git config --global --add safe.directory /github/workspace in entrypoint.sh (before git submodule update --init --recursive is executed).

License

MIT

Original Author

James Webb

About

This is a GitHub action for checking out submodules defined within a repository.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 81.2%
  • Dockerfile 11.3%
  • Standard ML 7.5%