Does checkout supports sparse-checkout #26578
-
This will help in case of large repos, just wanted to know whether this is supported or not in checkout actions |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
You can specify actions/checkoutAction for checking out a repo. Contribute to actions/checkout development by creating an account on GitHub. It looks like there’s an open issue to support Options like sparse mode
Hi. GitHub is internally evaluating partial-clone (Actually GitLab already provides the feature!). This can be useful for a large monorepo with sparse-checkout(see git... |
Beta Was this translation helpful? Give feedback.
-
I was just thinking of opening a new feature request , Thanks for point to the already open issue. |
Beta Was this translation helpful? Give feedback.
-
This is what I did to get partial clone:
Hopefully should help someone trying to clone large repos |
Beta Was this translation helpful? Give feedback.
-
This looks good, but I have not been able to decode the GITHUB_ACTOR and GITHUB_TOKEN. Are these personal or something to explicitly allow for my private repo? |
Beta Was this translation helpful? Give feedback.
-
GITHUB_ACTOR is whoever is causing the action to run. (Ref: Environment variables - GitHub Docs) GITHUB_TOKEN is a temporary token that’s generated for each action run. (Ref: Authentication in a workflow - GitHub Docs) |
Beta Was this translation helpful? Give feedback.
You can specify
GitHubfetch-depth
, which might help:actions/checkout
Action for checking out a repo. Contribute to actions/checkout development by creating an account on GitHub.
It looks like there’s an open issue to support
github.com/actions/checkoutsparse
checkout:Options like sparse mode