depoly: try to fix lfs checkout
This commit is contained in:
parent
2b16b8ef80
commit
f7787b5af0
1 changed files with 13 additions and 1 deletions
|
@ -15,7 +15,19 @@ jobs:
|
|||
uses: actions/checkout@v4
|
||||
with:
|
||||
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
|
||||
run: |
|
||||
|
|
Loading…
Reference in a new issue