Skip to content

Commit f79ca3c

Browse files
committed
Fix Git LFS authentication for docs workflow
1 parent b7ca4d3 commit f79ca3c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/docs-build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ jobs:
7070
# only Pytorch has/uses notebooks
7171
submodules: ${{ matrix.pkg-name == 'pytorch' }}
7272
lfs: ${{ matrix.pkg-name == 'pytorch' }}
73+
- name: Setup Git LFS credentials
74+
if: ${{ matrix.pkg-name == 'pytorch' }}
75+
run: |
76+
git config --global credential.helper store
77+
echo "https://$GITHUB_ACTOR:[email protected]" > ~/.git-credentials
7378
- uses: actions/setup-python@v6
7479
with:
7580
python-version: "3.10"

0 commit comments

Comments
 (0)