From 5ab00a375957f34b47c35a6d5e5a127acb515697 Mon Sep 17 00:00:00 2001 From: Shaun Arman Date: Sun, 5 Apr 2026 12:11:12 -0500 Subject: [PATCH] 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. --- .gitea/workflows/auto-tag.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/auto-tag.yml b/.gitea/workflows/auto-tag.yml index 19fe39c5..d4d4bce9 100644 --- a/.gitea/workflows/auto-tag.yml +++ b/.gitea/workflows/auto-tag.yml @@ -408,14 +408,14 @@ jobs: # 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". rm -f /etc/apt/sources.list.d/debian.sources - cat > /etc/apt/sources.list << 'SOURCES' -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://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-updates main -deb [arch=arm64] http://security.debian.org/debian-security bookworm-security main -SOURCES + printf '%s\n' \ + '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://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-updates main' \ + 'deb [arch=arm64] http://security.debian.org/debian-security bookworm-security main' \ + > /etc/apt/sources.list apt-get update -qq apt-get install -y -qq \ gcc-aarch64-linux-gnu g++-aarch64-linux-gnu \