This repository was archived by the owner on Jun 9, 2023. It is now read-only.
forked from actions/checkout
-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Spiritaine
approved these changes
May 14, 2023
1c46459
to
eea6d0e
Compare
Merged here! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context:
Monorepo sometimes can be challenging mainly when having a huge base of code. A lot of people have encounter situation where they don't need to fetch everything inside the repository, with this new option anyone will be able to make
sparse-checkout
inside github action quite simple!Features:
sparse-checkout
optionsparse-checkout
README.md
withsparse-checkout
option and examplesUsage:
Fetch only the root files
Fetch only the root files and
.github
andsrc
folderImplementation
In order to make
sparase-checkout
much useful I have added to thegit fetch
the possibility to add a filter in order to use--filter='blob:none'
.With this update we will make sure that when the fetch is done no blob of the repository will be downloaded (this filter will be done only when
sparse-checkout
is set), instead the blobs will be downloaded when making thegit checkout
after having thesparse-checkout
configured.Here you can find the article that I have used to guide me to make the implementation.
Related Issues