Fix CI: Only clean .git dir, not entire workspace
Some checks failed
BotServer CI/CD / build (push) Failing after 0s
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:
parent
d0e24652c3
commit
9e8f3bc309
1 changed files with 2 additions and 2 deletions
|
|
@ -28,6 +28,8 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
mkdir -p $WORKSPACE
|
mkdir -p $WORKSPACE
|
||||||
cd $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)
|
# Update or clone botserver (preserve git history for sccache fingerprints)
|
||||||
if [ -d botserver/.git ]; then
|
if [ -d botserver/.git ]; then
|
||||||
git -C botserver pull origin main
|
git -C botserver pull origin main
|
||||||
|
|
@ -44,8 +46,6 @@ jobs:
|
||||||
for m in botapp botdevice bottest botui botbook botmodels botplugin bottemplates; do
|
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
|
grep -v "\"$m\"" Cargo.toml > /tmp/c.toml && mv /tmp/c.toml Cargo.toml
|
||||||
done
|
done
|
||||||
# Clean existing workspace to avoid conflicts
|
|
||||||
rm -rf /opt/gbo/data/botserver
|
|
||||||
# Ensure target dir exists
|
# Ensure target dir exists
|
||||||
mkdir -p target
|
mkdir -p target
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue