From f7787b5af058419dbe4ee27a65c31cf98a26e78c Mon Sep 17 00:00:00 2001 From: Rubicon Date: Fri, 7 Jun 2024 05:39:27 +0000 Subject: [PATCH] depoly: try to fix lfs checkout --- .forgejo/workflows/depoly.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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: |