fix: replace actions/checkout in build-iso-dev.yml (THE ACTUAL WORKFLOW)

We were editing build-iso.yml but Gitea runs build-iso-dev.yml.
Replaced actions/checkout@v4 with direct git fetch+rsync.
This is the root cause of stale builds all day.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dorian 2026-04-02 22:33:40 +01:00
parent 54f1213a7f
commit 8f7798328b

View File

@ -11,33 +11,19 @@ jobs:
timeout-minutes: 60 timeout-minutes: 60
steps: steps:
- name: Checkout - name: Checkout
id: checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
timeout-minutes: 5
continue-on-error: true
- name: Sync from local repo (fallback if checkout failed)
run: | run: |
# Only sync from ~/archy if checkout failed or workspace is empty # Direct fetch + sync (actions/checkout token is broken on this Gitea)
if [ -f "CLAUDE.md" ] && [ -d "core" ] && [ -d "neode-ui" ]; then cd /home/archipelago/archy && git fetch origin main && git reset --hard origin/main
echo "Checkout succeeded — using checked-out code" echo "=== Source at commit: $(git log --oneline -1) ==="
elif [ -d "$HOME/archy/core" ] && [ -d "$HOME/archy/neode-ui" ]; then rsync -a --delete \
echo "Checkout failed — syncing from ~/archy (LAN fallback)..." --exclude '.git' --exclude 'node_modules' --exclude 'target' \
rsync -a \ --exclude 'image-recipe/build' --exclude 'image-recipe/results' \
--exclude '.git' --exclude 'node_modules' --exclude 'target' \ --exclude 'web/dist' \
--exclude 'image-recipe/build' --exclude 'image-recipe/results' \ /home/archipelago/archy/ "$GITHUB_WORKSPACE/"
--exclude 'web/dist' \ cd "$GITHUB_WORKSPACE"
"$HOME/archy/" ./ echo "=== Workspace version: $(grep '^version' core/archipelago/Cargo.toml) ==="
else
echo "ERROR: No checkout and no local fallback"
exit 1
fi
echo "Workspace verification:"
[ -f "scripts/first-boot-containers.sh" ] && echo " first-boot-containers.sh: PRESENT" || echo " first-boot-containers.sh: MISSING" [ -f "scripts/first-boot-containers.sh" ] && echo " first-boot-containers.sh: PRESENT" || echo " first-boot-containers.sh: MISSING"
grep -q 'network-alias' scripts/first-boot-containers.sh 2>/dev/null && echo " network-alias fix: PRESENT" || echo " network-alias fix: MISSING" grep -q 'network-alias' scripts/first-boot-containers.sh 2>/dev/null && echo " network-alias fix: PRESENT" || echo " network-alias fix: MISSING"
grep -q 'apache2-utils' image-recipe/build-auto-installer-iso.sh 2>/dev/null && echo " apache2-utils: PRESENT" || echo " apache2-utils: MISSING"
- name: Install ISO build dependencies - name: Install ISO build dependencies
run: | run: |