fix(ci): correct YAML indentation causing workflow parse error
Some checks failed
BotServer CI / build (push) Failing after 39s
Some checks failed
BotServer CI / build (push) Failing after 39s
- Fixed CARGO_INCREMENTAL indent (was 8 spaces, needs 6) - Quoted PATH value to avoid colon parsing issues - Broke if/then across lines for readability
This commit is contained in:
parent
45c5a2b2e5
commit
c49a7ef65c
1 changed files with 12 additions and 11 deletions
|
|
@ -16,16 +16,17 @@ jobs:
|
||||||
runs-on: gbo
|
runs-on: gbo
|
||||||
env:
|
env:
|
||||||
RUSTC_WRAPPER: sccache
|
RUSTC_WRAPPER: sccache
|
||||||
CARGO_INCREMENTAL: "1"
|
CARGO_INCREMENTAL: "1"
|
||||||
PATH: /home/gbuser/.cargo/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/sbin:/bin
|
PATH: "/home/gbuser/.cargo/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/sbin:/bin"
|
||||||
steps:
|
steps:
|
||||||
- name: Setup
|
- name: Setup
|
||||||
run: |
|
run: |
|
||||||
cd /opt/gbo/work/generalbots
|
cd /opt/gbo/work/generalbots
|
||||||
OLD_REV=$(git rev-parse HEAD)
|
OLD_REV=$(git rev-parse HEAD)
|
||||||
git pull --rebase || git rebase --abort && git reset --hard origin/main
|
git pull --rebase || { git rebase --abort; git reset --hard origin/main; }
|
||||||
NEW_REV=$(git rev-parse HEAD)
|
NEW_REV=$(git rev-parse HEAD)
|
||||||
if [ "$OLD_REV" != "$NEW_REV" ]; then
|
if [ "$OLD_REV" != "$NEW_REV" ]
|
||||||
|
then
|
||||||
git diff --name-only -z "$OLD_REV" "$NEW_REV" | xargs -0 touch
|
git diff --name-only -z "$OLD_REV" "$NEW_REV" | xargs -0 touch
|
||||||
fi
|
fi
|
||||||
git log --oneline -1
|
git log --oneline -1
|
||||||
|
|
@ -54,14 +55,14 @@ jobs:
|
||||||
ssh -i /home/gbuser/.ssh/id_ed25519 -o StrictHostKeyChecking=no \
|
ssh -i /home/gbuser/.ssh/id_ed25519 -o StrictHostKeyChecking=no \
|
||||||
gbuser@system \
|
gbuser@system \
|
||||||
"sudo systemctl stop botserver || true && \
|
"sudo systemctl stop botserver || true && \
|
||||||
sudo systemctl stop ui || true && \
|
sudo systemctl stop ui || true && \
|
||||||
sudo mv /opt/gbo/bin/botserver-new /opt/gbo/bin/botserver && \
|
sudo mv /opt/gbo/bin/botserver-new /opt/gbo/bin/botserver && \
|
||||||
sudo mv /opt/gbo/bin/botui-new /opt/gbo/bin/botui && \
|
sudo mv /opt/gbo/bin/botui-new /opt/gbo/bin/botui && \
|
||||||
sudo chmod +x /opt/gbo/bin/botserver /opt/gbo/bin/botui && \
|
sudo chmod +x /opt/gbo/bin/botserver /opt/gbo/bin/botui && \
|
||||||
sudo systemctl start botserver && \
|
sudo systemctl start botserver && \
|
||||||
sudo systemctl start ui"
|
sudo systemctl start ui"
|
||||||
sleep 10
|
sleep 10
|
||||||
ssh -i /home/gbuser/.ssh/id_ed25519 -o StrictHostKeyChecking=no \
|
ssh -i /home/gbuser/.ssh/id_ed25519 -o StrictHostKeyChecking=no \
|
||||||
gbuser@system \
|
gbuser@system \
|
||||||
"curl -sf http://localhost:5858/api/health && echo 'BotServer OK' || echo 'BotServer FAILED'; \
|
"curl -sf http://localhost:5858/api/health && echo 'BotServer OK' || echo 'BotServer FAILED'; \
|
||||||
curl -sf http://localhost:3000/ && echo 'BotUI OK' || echo 'BotUI FAILED'"
|
curl -sf http://localhost:3000/ && echo 'BotUI OK' || echo 'BotUI FAILED'"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue