fix: Avoid workspace conflict in Forgejo CI
All checks were successful
BotUI CI / build (push) Successful in 4m41s

Remove actions/checkout with custom path that causes multiple workspace
roots error. Clone botui repository directly in Setup Workspace step
instead of using checkout action.

Fixes error: "multiple workspace roots found in the same workspace"

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Rodrigo Rodriguez 2026-02-15 23:26:37 +00:00
parent 9b417bf4f2
commit cbbcc58ad7

View file

@ -18,17 +18,16 @@ jobs:
- name: Disable SSL verification
run: git config --global http.sslVerify false
- name: Checkout BotUI Code
uses: actions/checkout@v4
with:
path: botui
- name: Setup Workspace
run: |
# Clone the main gb repository
git clone --depth 1 --branch main https://alm.pragmatismo.com.br/GeneralBots/gb.git workspace
cd workspace
git submodule update --init --depth 1 botlib
# Clone botui separately
git clone --depth 1 --branch main https://alm.pragmatismo.com.br/GeneralBots/botui.git botui
# Remove all members except botui and botlib from workspace
sed -i '/"botapp",/d' Cargo.toml
sed -i '/"botdevice",/d' Cargo.toml
@ -38,10 +37,6 @@ jobs:
sed -i '/"botmodels",/d' Cargo.toml
sed -i '/"botplugin",/d' Cargo.toml
sed -i '/"bottemplates",/d' Cargo.toml
cd ..
rm -rf workspace/botui
mv botui workspace/botui
- name: Cache Cargo registry
uses: actions/cache@v4