File tree Expand file tree Collapse file tree 1 file changed +1
-29
lines changed Expand file tree Collapse file tree 1 file changed +1
-29
lines changed Original file line number Diff line number Diff line change 70
70
token : ${{ secrets.GITHUB_TOKEN }}
71
71
# only Pytorch has/uses notebooks
72
72
submodules : ${{ matrix.pkg-name == 'pytorch' }}
73
- lfs : false # Disable LFS during checkout to avoid auth issues
74
- - name : Configure Git LFS authentication
75
- if : ${{ matrix.pkg-name == 'pytorch' }}
76
- env :
77
- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
78
- run : |
79
- # Configure Git LFS with proper authentication using recommended approach
80
- git config --global credential.helper store
81
- echo "https://${{ github.actor }}:${GH_TOKEN}@github.com" > ~/.git-credentials
82
-
83
- # Set LFS configuration to use GitHub token
84
- git config --global lfs."https://github.com/".access basic
85
- git config --global lfs."https://github.com/".locksverify false
86
-
87
- - name : Fetch LFS objects for submodule
88
- if : ${{ matrix.pkg-name == 'pytorch' }}
89
- working-directory : _notebooks
90
- env :
91
- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
92
- run : |
93
- # Initialize LFS in submodule context
94
- git lfs install --local
95
-
96
- # Set the correct LFS endpoint with authentication (using the actual repo name)
97
- git config lfs.url "https://${{ github.actor }}:${GH_TOKEN}@github.com/Lightning-AI/tutorials.git/info/lfs"
98
-
99
- # Fetch and checkout LFS objects
100
- git lfs fetch --all
101
- git lfs checkout
73
+ lfs : ${{ matrix.pkg-name == 'pytorch' }}
102
74
- uses : actions/setup-python@v6
103
75
with :
104
76
python-version : " 3.10"
You can’t perform that action at this time.
0 commit comments