diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 0ea0e2b..e79e48d 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -14,8 +14,18 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - with: - lfs: true + # Workaround for broken LFS checkout, see https://gitea.com/gitea/act_runner/issues/164 + - name: Checkout LFS + run: | + UrlBase=$GITHUB_SERVER_URL + UrlLfsBase=$UrlBase/${{ gitea.repository }}.git/info/lfs/objects + git config --local http.${UrlLfsBase}/batch.extraheader "$(git config --get --local http.$UrlBase/.extraheader)" + git config --local http.${UrlLfsBase}/.extraheader '' + + git config --local lfs.transfer.maxretries 1 + + git lfs fetch origin refs/remotes/origin/${{ gitea.ref_name }} + git lfs checkout - name: Setup dotnet uses: https://github.com/actions/setup-dotnet@v3 with: