From 706a495e2b9913bb52bc1f22308a447bdff3155a Mon Sep 17 00:00:00 2001 From: Minimata Date: Mon, 16 Jun 2025 08:25:28 +0200 Subject: [PATCH] ci: trying to fetch LFS by themselves --- .gitea/workflows/main.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml index 5749758..3daad65 100644 --- a/.gitea/workflows/main.yaml +++ b/.gitea/workflows/main.yaml @@ -49,8 +49,19 @@ jobs: - name: Checkout uses: actions/checkout@v3 with: - lfs: true - token: ${{ secrets.token }} + lfs: false + - name: Checkout LFS + run: | + UrlBase=$GITHUB_SERVER_URL; \ + UrlLfsBase=$UrlBase/${{ gitea.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 + + /usr/bin/git lfs fetch origin refs/remotes/origin/${{ gitea.ref_name }} + /usr/bin/git lfs checkout - name: Import resources and build solution run: | godot --headless --editor --build-solutions --quit --import --path $PWD