From 5a850275b7bd427dfebdf3898738b8c4a4eaa0ca Mon Sep 17 00:00:00 2001 From: Dorian Date: Thu, 26 Mar 2026 14:16:13 +0000 Subject: [PATCH] fix: CI checkout uses manual git clone instead of missing action The actions/checkout@v4 action was 404 on git.tx1138.com causing instant build failures. Use manual git clone for reliability with host-mode runner. Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitea/workflows/build-iso.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build-iso.yml b/.gitea/workflows/build-iso.yml index 7c7f2285..a1d3803b 100644 --- a/.gitea/workflows/build-iso.yml +++ b/.gitea/workflows/build-iso.yml @@ -11,9 +11,17 @@ jobs: timeout-minutes: 30 steps: - name: Checkout - uses: https://git.tx1138.com/actions/checkout@v4 - with: - fetch-depth: 1 + run: | + WORKSPACE="${GITHUB_WORKSPACE:-$(pwd)}" + cd "$WORKSPACE" + if [ -d .git ]; then + git fetch origin "${GITHUB_REF_NAME:-main}" --depth 1 + git checkout FETCH_HEAD + else + git clone --depth 1 --branch "${GITHUB_REF_NAME:-main}" \ + "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" "$WORKSPACE" + fi + echo "Checked out $(git rev-parse --short HEAD) on ${GITHUB_REF_NAME:-main}" - name: Build backend run: |