From 867554b83569666cfe481a841d22656129585815 Mon Sep 17 00:00:00 2001 From: Minimata Date: Wed, 28 Jan 2026 12:45:13 +0100 Subject: [PATCH] testing ci --- .gitea/workflows/main.yaml | 41 ++++++++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 15 deletions(-) diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml index a9373ae0..4427f893 100644 --- a/.gitea/workflows/main.yaml +++ b/.gitea/workflows/main.yaml @@ -49,7 +49,17 @@ jobs: - name: Checkout uses: actions/checkout@v6 with: - lfs: true + 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 - name: Run tests uses: godot-gdunit-labs/gdUnit4-action@v1 @@ -81,14 +91,15 @@ jobs: image: barichello/godot-ci:mono-4.6 steps: -# - name: Install node, curl and zip -# run: | -# apt update && apt -y install curl zip nodejs + - name: Install node, curl and zip + run: | + apt update && apt -y install curl zip nodejs - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@v4 with: - lfs: true + lfs: false + persist-credentials: true # - name: Checkout LFS # run: | @@ -110,15 +121,15 @@ jobs: # 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 + + - 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 # - name: Remove GDUnit addon folder because it breaks the build # run: |