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

Add support for submodule cloning during checkout #77

Merged
merged 2 commits into from
Sep 5, 2024

Conversation

neel-astro
Copy link
Collaborator

@neel-astro neel-astro commented Sep 3, 2024

Changes:

  • Add a new input submodule to allow cloning the repo including submodules. Possible values are true, false (default), and recursive. Works only when checkout is set to true. SSH URLs beginning with [email protected]: are converted to HTTPS.

Closes: #76

Testing:

  • Case with submodule disabled (default case):
Screenshot 2024-09-04 at 3 43 05 PM
  • Case with submodule set to true:
Screenshot 2024-09-04 at 3 43 31 PM
  • Case with submodule set to recursive:
Screenshot 2024-09-04 at 3 43 56 PM

@neel-astro neel-astro requested review from a team and sunkickr September 3, 2024 15:18
action.yaml Outdated
@@ -82,6 +82,10 @@ inputs:
build-secrets:
required: false
description: "Mimics docker build --secret flag. See https://docs.docker.com/build/building/secrets/ for more information. Example input 'id=mysecret,src=secrets.txt'"
submodule:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about checkout-submodules so its more clearly about the checkout and that you could have multiple?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated to checkout-submodule, also ran through some manual tests to ensure it's functioning as per expectation

@neel-astro neel-astro merged commit 310c0a3 into main Sep 5, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

Add flag to enable git config -- global submodule.recurse
2 participants