depoly: try to fix lfs checkout

This commit is contained in:
Rubicon 2024-06-07 05:39:27 +00:00
parent 2b16b8ef80
commit f7787b5af0

View file

@ -15,7 +15,19 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
submodules: true # Checkout private submodules(themes or something else). submodules: true # Checkout private submodules(themes or something else).
lfs: true
- name: Checkout LFS
run: |
UrlBase=$GITHUB_SERVER_URL; \
UrlLfsBase=$UrlBase/${{ github.repository }}.git/info/lfs/objects; \
Auth=`/usr/bin/git config --get --local http.$UrlBase/.extraheader`; \
/usr/bin/git config --local http.${UrlLfsBase}/batch.extraheader "$Auth"; \
/usr/bin/git config --local http.${UrlLfsBase}/.extraheader ''
git config --local lfs.transfer.maxretries 1
git lfs fetch origin refs/remotes/origin/${{ github.ref_name }}
git lfs checkout
- name: Setup pnpm - name: Setup pnpm
run: | run: |