diff --git a/.forgejo/workflows/depoly.yml b/.forgejo/workflows/depoly.yml index 5bd2ffa..36b292e 100644 --- a/.forgejo/workflows/depoly.yml +++ b/.forgejo/workflows/depoly.yml @@ -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: |