You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(BTW -- GitHub actions, and this checkout action, are both excellent, so I want to start by saying thank you!)
At $WORK, we use a mono-repo-style repository. Therefore, our GitHub Actions events usually only affect one sub-directory of the repository. We use git-lfs to store some files, so I enabled the lfs checkout in the checkout action.
Unfortunately, this has resulted in a huge amount of LFS bandwidth on our end, sadly, so I'd like to try another approach.
I'd like either (a) a built-in way for the checkout action to only check out lfs data from some paths, or (b) to figure out how to do that myself. I'd be happy to do (b), except I can't figure out how the checkout action is authenticating to lfs to download its data.
Here's a sample YAML file that shows what I'm trying:
I was able to accomplish what I wanted by adding this to my YAML file:
+ - name: Configure git-lfs to ignore most files+ run: |+ git config --global lfs.fetchinclude 'reduct-app/**'
- uses: actions/checkout@v1
I'll happily close this for now. I do think it'd be useful for checkout to expose this as a configuration parameter someday, but it's not essential. :)
Hi there!
(BTW -- GitHub actions, and this checkout action, are both excellent, so I want to start by saying thank you!)
At $WORK, we use a mono-repo-style repository. Therefore, our GitHub Actions events usually only affect one sub-directory of the repository. We use
git-lfs
to store some files, so I enabled the lfs checkout in thecheckout
action.Unfortunately, this has resulted in a huge amount of LFS bandwidth on our end, sadly, so I'd like to try another approach.
I'd like either (a) a built-in way for the
checkout
action to only check outlfs
data from some paths, or (b) to figure out how to do that myself. I'd be happy to do (b), except I can't figure out how the checkout action is authenticating to lfs to download its data.Here's a sample YAML file that shows what I'm trying:
Thanks!
The text was updated successfully, but these errors were encountered: