Skip to content

Commit fc73f32

Browse files
committed
Fix LFS auth by configuring submodule-specific LFS URL and manual checkout
1 parent ebb3e74 commit fc73f32

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/docs-build.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,20 @@ jobs:
6464
PIN_RELEASE_VERSIONS: 1
6565
ARTIFACT_DAYS: 0
6666
steps:
67-
- name: Setup Git LFS credentials
68-
if: ${{ matrix.pkg-name == 'pytorch' }}
69-
run: |
70-
git config --global credential.helper store
71-
echo "https://$GITHUB_ACTOR:[email protected]" > ~/.git-credentials
72-
git config --global lfs.url "https://$GITHUB_ACTOR:[email protected]"
7367
- uses: actions/checkout@v5
7468
with:
7569
ref: ${{ inputs.checkout }}
7670
token: ${{ secrets.GITHUB_TOKEN }}
7771
# only Pytorch has/uses notebooks
7872
submodules: ${{ matrix.pkg-name == 'pytorch' }}
7973
lfs: ${{ matrix.pkg-name == 'pytorch' }}
74+
- name: Configure Git LFS for submodules
75+
if: ${{ matrix.pkg-name == 'pytorch' }}
76+
run: |
77+
cd _notebooks
78+
git config lfs.url "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/Lightning-AI/lightning-tutorials.git/info/lfs"
79+
git lfs fetch --all
80+
git lfs checkout
8081
- uses: actions/setup-python@v6
8182
with:
8283
python-version: "3.10"

0 commit comments

Comments
 (0)