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