This repo contains a GitHub Action that demonstrates sparse checkout.
Refer to this blog post for more information.
View the action file: .github/workflows/sparse-checkout-demo.yml
This repo has the following structure and files. The sparse checkout action will only checkout blue-folder/project1/** folder.
π blue-folder β
ββπ project1 β£β Only this folder will be checked out
β ββπ largeFile10MB.bin β
β ββπ textFile1.txt β
ββπ project2
β ββπ largeFile7MB.bin
β ββπ textFile2.txt
π red-folder
ββπ project3
β ββπ textFile3.txt
ββπ project4
ββπ textFile4.txt