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