From 2678cac0e686dbf4f45eb08eb68baa25e01dc2e5 Mon Sep 17 00:00:00 2001 From: Minimata Date: Tue, 27 Jan 2026 19:01:05 +0100 Subject: [PATCH] FUUUUCK FUUUUUUUUUUCK --- .gitea/workflows/main.yaml | 38 +++++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml index 932e0ca2..f270c03b 100644 --- a/.gitea/workflows/main.yaml +++ b/.gitea/workflows/main.yaml @@ -93,21 +93,41 @@ jobs: - name: Install node, curl and zip run: | apt update && apt -y install curl zip nodejs - + - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@v3 with: lfs: false - persist-credentials: true - name: Checkout LFS run: | - 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 + 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 + +# - name: Checkout +# uses: actions/checkout@v6 +# with: +# lfs: false +# persist-credentials: true +# +# - name: Checkout LFS +# run: | +# 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 # GDUnit action replacement while waiting for 4.6 support - name: Import resources and build solution