From d0ae0a85c21985f3102d613c0a1f2ff1f7fe6240 Mon Sep 17 00:00:00 2001 From: Asko Nõmm Date: Sun, 25 Jan 2026 15:14:25 +0200 Subject: Fix checkout: use git fetch instead of clone to avoid network issues --- .forgejo/workflows/tests.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to '.forgejo/workflows/tests.yml') diff --git a/.forgejo/workflows/tests.yml b/.forgejo/workflows/tests.yml index cc5fd00..27fbdee 100644 --- a/.forgejo/workflows/tests.yml +++ b/.forgejo/workflows/tests.yml @@ -17,7 +17,12 @@ jobs: apt-get install -y curl wget bash rlwrap unzip git - name: Checkout - uses: actions/checkout@v4 + run: | + git config --global --add safe.directory "$GITHUB_WORKSPACE" + git init + git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" + git fetch --depth 1 origin "${GITHUB_SHA}" + git checkout FETCH_HEAD - name: Install Java (Zulu 24) run: | -- cgit v1.2.3