File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -70,12 +70,23 @@ jobs:
70
70
token : ${{ secrets.GITHUB_TOKEN }}
71
71
# only Pytorch has/uses notebooks
72
72
submodules : ${{ matrix.pkg-name == 'pytorch' }}
73
- lfs : ${{ matrix.pkg-name == 'pytorch' }}
74
- - name : Configure Git LFS for submodules
73
+ lfs : false # Disable LFS during checkout to avoid auth issues
74
+ - name : Setup LFS and fetch notebooks manually
75
75
if : ${{ matrix.pkg-name == 'pytorch' }}
76
76
run : |
77
+ # Configure Git to use token for all GitHub operations
78
+ git config --global credential.helper store
79
+ echo "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com" > ~/.git-credentials
80
+
81
+ # Navigate to submodule and configure LFS with correct URL
77
82
cd _notebooks
78
83
git config lfs.url "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/Lightning-AI/lightning-tutorials.git/info/lfs"
84
+ git config credential.helper store
85
+
86
+ # Install and configure LFS
87
+ git lfs install
88
+
89
+ # Fetch LFS objects
79
90
git lfs fetch --all
80
91
git lfs checkout
81
92
- uses : actions/setup-python@v6
You can’t perform that action at this time.
0 commit comments