From f00439a4302ebcf2c8c886a78ae28b3d55871325 Mon Sep 17 00:00:00 2001 From: Minimata Date: Wed, 28 Jan 2026 13:08:24 +0100 Subject: [PATCH] testing ci --- .gitea/workflows/main.yaml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml index 632ff09c..9dd1f0f3 100644 --- a/.gitea/workflows/main.yaml +++ b/.gitea/workflows/main.yaml @@ -51,21 +51,17 @@ jobs: with: lfs: false persist-credentials: true - + - 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 - /usr/bin/git add . - /usr/bin/git reset --hard + apt-get update && apt-get install -y git-lfs + git lfs update --force || true + git lfs install --local + AUTH=$(git config http.${{ gitea.server_url }}/.extraheader) + AUTH_FILE=$(git config includeif.gitdir:/workspace/${{ gitea.repository }}/.git.path) + git config -f $AUTH_FILE --unset http.${{ gitea.server_url }}/.extraheader + git config -f $AUTH_FILE http.${{ gitea.server_url }}/${{ gitea.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH" + git lfs pull - name: Run tests uses: godot-gdunit-labs/gdUnit4-action@v1