actions / checkout

Action for checking out a repo
https://github.com/features/actions
MIT License
5.91k stars 1.74k forks source link

Support LFS include/exclude #1839

Open alex-statsig opened 3 months ago

alex-statsig commented 3 months ago

Currently git LFS seems to be all-or-nothing in the checkout action. Would it be possible to support include/exclude paths similar to the underlying git command (ex. https://www.atlassian.com/git/tutorials/git-lfs)? This would be valuable in monorepo setups to avoid downloading LFS files for other apps (and thus decrease LFS bandwidth usage).

From what I can tell, it seems like the lfsFetch command could fairly easily propagate some setting for lfs-exclude here

kohtala commented 3 months ago

I think this duplicates #165 on the bandwidth issue. The workaround there can be adjusted to include -X and -I options for git lfs pull.