From 380af7e1cbf5518016f9a5b48205ee74ddab980c Mon Sep 17 00:00:00 2001 From: Dorian Date: Thu, 2 Apr 2026 19:15:54 +0100 Subject: [PATCH] fix: CI always pulls latest before fallback to local repo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The actions/checkout fails (Gitea token issue) and falls back to ~/archy local copy. But local copy was stale — builds were missing fixes. Now: always git pull in local repo before rsync fallback. Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitea/workflows/build-iso.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.gitea/workflows/build-iso.yml b/.gitea/workflows/build-iso.yml index ba2f800f..f15037d4 100644 --- a/.gitea/workflows/build-iso.yml +++ b/.gitea/workflows/build-iso.yml @@ -15,6 +15,19 @@ jobs: with: fetch-depth: 1 clean: true + continue-on-error: true + + - name: Sync from local repo (fallback when checkout fails) + run: | + # Always pull latest in local repo so fallback is current + cd /home/archipelago/archy && git pull origin main 2>/dev/null || true + # If checkout failed (no .git), copy from local repo + if [ ! -d ".git" ] || [ ! -f "core/archipelago/Cargo.toml" ]; then + echo "Checkout failed — syncing from local repo" + rsync -a --delete --exclude='.git' --exclude='target/' --exclude='node_modules/' \ + /home/archipelago/archy/ ./ 2>/dev/null || cp -a /home/archipelago/archy/* . 2>/dev/null + fi + echo "Source version: $(grep '^version' core/archipelago/Cargo.toml 2>/dev/null)" - name: Build backend run: |