fix(ci): correct YAML indentation causing workflow parse error
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:
Rodrigo Rodriguez (Pragmatismo) 2026-04-29 09:24:27 -03:00
parent 45c5a2b2e5
commit c49a7ef65c

View file

@ -17,15 +17,16 @@ jobs:
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