fix(ci): replace heredoc with printf in arm64 install step

YAML block scalars end when a line is found with less indentation than
the scalar's own indent level. The heredoc body was at column 0 while
the rest of the run: block was at column 10, causing Gitea's YAML parser
to reject the entire workflow file with:

  yaml: line 412: could not find expected ':'

This silently invalidated auto-tag.yml on every push to master since the
apt-sources commit was merged, which is why PR#9 and PR#10 merges produced
no action runs.

Fix: replace the heredoc with a printf that stays within the block scalar's
indentation so the YAML remains valid.
This commit is contained in:
Shaun Arman 2026-04-05 12:11:12 -05:00
parent d676372487
commit 5ab00a3759

View File

@ -408,14 +408,14 @@ jobs:
# explicit per-arch entries in sources.list. Without this, apt tries to resolve # explicit per-arch entries in sources.list. Without this, apt tries to resolve
# deps across both amd64 and arm64 simultaneously and hits "held broken packages". # deps across both amd64 and arm64 simultaneously and hits "held broken packages".
rm -f /etc/apt/sources.list.d/debian.sources rm -f /etc/apt/sources.list.d/debian.sources
cat > /etc/apt/sources.list << 'SOURCES' printf '%s\n' \
deb [arch=amd64] http://deb.debian.org/debian bookworm main 'deb [arch=amd64] http://deb.debian.org/debian bookworm main' \
deb [arch=amd64] http://deb.debian.org/debian bookworm-updates main 'deb [arch=amd64] http://deb.debian.org/debian bookworm-updates main' \
deb [arch=amd64] http://security.debian.org/debian-security bookworm-security main 'deb [arch=amd64] http://security.debian.org/debian-security bookworm-security main' \
deb [arch=arm64] http://deb.debian.org/debian bookworm main 'deb [arch=arm64] http://deb.debian.org/debian bookworm main' \
deb [arch=arm64] http://deb.debian.org/debian bookworm-updates main 'deb [arch=arm64] http://deb.debian.org/debian bookworm-updates main' \
deb [arch=arm64] http://security.debian.org/debian-security bookworm-security main 'deb [arch=arm64] http://security.debian.org/debian-security bookworm-security main' \
SOURCES > /etc/apt/sources.list
apt-get update -qq apt-get update -qq
apt-get install -y -qq \ apt-get install -y -qq \
gcc-aarch64-linux-gnu g++-aarch64-linux-gnu \ gcc-aarch64-linux-gnu g++-aarch64-linux-gnu \