fix: Avoid workspace conflict in Forgejo CI
All checks were successful
BotServer CI / build (push) Successful in 7m54s
All checks were successful
BotServer CI / build (push) Successful in 7m54s
Remove actions/checkout with custom path that causes multiple workspace roots error. Clone botserver 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:
parent
8257d49967
commit
0883fe9cce
1 changed files with 5 additions and 10 deletions
|
|
@ -18,17 +18,16 @@ jobs:
|
||||||
- name: Disable SSL verification
|
- name: Disable SSL verification
|
||||||
run: git config --global http.sslVerify false
|
run: git config --global http.sslVerify false
|
||||||
|
|
||||||
- name: Checkout BotServer Code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
path: botserver
|
|
||||||
|
|
||||||
- name: Setup Workspace
|
- name: Setup Workspace
|
||||||
run: |
|
run: |
|
||||||
|
# Clone the main gb repository
|
||||||
git clone --depth 1 --branch main https://alm.pragmatismo.com.br/GeneralBots/gb.git workspace
|
git clone --depth 1 --branch main https://alm.pragmatismo.com.br/GeneralBots/gb.git workspace
|
||||||
cd workspace
|
cd workspace
|
||||||
git submodule update --init --depth 1 botlib
|
git submodule update --init --depth 1 botlib
|
||||||
|
|
||||||
|
# Clone botserver separately
|
||||||
|
git clone --depth 1 --branch main https://alm.pragmatismo.com.br/GeneralBots/BotServer.git botserver
|
||||||
|
|
||||||
# Remove all members except botserver and botlib from workspace
|
# Remove all members except botserver and botlib from workspace
|
||||||
sed -i '/"botapp",/d' Cargo.toml
|
sed -i '/"botapp",/d' Cargo.toml
|
||||||
sed -i '/"botdevice",/d' Cargo.toml
|
sed -i '/"botdevice",/d' Cargo.toml
|
||||||
|
|
@ -39,10 +38,6 @@ jobs:
|
||||||
sed -i '/"botplugin",/d' Cargo.toml
|
sed -i '/"botplugin",/d' Cargo.toml
|
||||||
sed -i '/"bottemplates",/d' Cargo.toml
|
sed -i '/"bottemplates",/d' Cargo.toml
|
||||||
|
|
||||||
cd ..
|
|
||||||
rm -rf workspace/botserver
|
|
||||||
mv botserver workspace/botserver
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue