Fix CI: Only clean .git dir, not entire workspace
Some checks failed
BotServer CI/CD / build (push) Failing after 0s

- 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 <noreply@anthropic.com>
This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-04-10 20:50:58 -03:00
parent d0e24652c3
commit 9e8f3bc309

View file

@ -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