From 9e8f3bc3094ba21ce25bd57b570de875145662f6 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Fri, 10 Apr 2026 20:50:58 -0300 Subject: [PATCH] Fix CI: Only clean .git dir, not entire workspace MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove only /opt/gbo/data/botserver/.git to preserve workspace - Avoids 'destination already exists' error on git clone 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .forgejo/workflows/botserver.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/botserver.yaml b/.forgejo/workflows/botserver.yaml index 4017a62f..c1848007 100644 --- a/.forgejo/workflows/botserver.yaml +++ b/.forgejo/workflows/botserver.yaml @@ -28,6 +28,8 @@ jobs: run: | mkdir -p $WORKSPACE cd $WORKSPACE + # Clean existing .git to avoid conflicts + rm -rf /opt/gbo/data/botserver/.git 2>/dev/null || true # Update or clone botserver (preserve git history for sccache fingerprints) if [ -d botserver/.git ]; then git -C botserver pull origin main @@ -44,8 +46,6 @@ jobs: for m in botapp botdevice bottest botui botbook botmodels botplugin bottemplates; do grep -v "\"$m\"" Cargo.toml > /tmp/c.toml && mv /tmp/c.toml Cargo.toml done - # Clean existing workspace to avoid conflicts - rm -rf /opt/gbo/data/botserver # Ensure target dir exists mkdir -p target