git: lfs workaround for checkoutv6
All checks were successful
Build and Deploy Quartz / build-and-deploy (push) Has been skipped

This commit is contained in:
2026-01-01 14:50:10 +08:00
parent 8c225bb7a0
commit 7299ca4af1

View File

@@ -14,8 +14,18 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v6 uses: actions/checkout@v6
with: with:
fetch-depth: 0 fetch-depth: 1
lfs: true # lfs: true # THIS DOESN'T WORK!!!!!!!!!
# https://github.com/actions/checkout/issues/1830
- name: Set up Git LFS
run: |
git lfs install --local
AUTH=$(git config http.${{ github.server_url }}/.extraheader)
AUTH_FILE=$(git config includeif.gitdir:/workspace/${{ github.repository }}/.git.path)
git config -f $AUTH_FILE --unset http.${{ github.server_url }}/.extraheader
git config -f $AUTH_FILE http.${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH"
git lfs pull
- name: Set up Node.js - name: Set up Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4