Fix YAML indentation in website workflow heredoc

The heredoc body for version.js was at column 0 while the surrounding
run block is indented 10 spaces, causing YAML to terminate the block
scalar and fail with 'Invalid workflow file' at line 146. Replace the
heredoc with a grouped echo block that respects the block indentation.
This commit is contained in:
Sylvestre Ledru
2026-04-13 09:17:26 +02:00
parent d843e3d2c2
commit 7131cf384a
+7 -7
View File
@@ -142,13 +142,13 @@ jobs:
commit_hash=$(git rev-parse HEAD)
commit_short=$(git rev-parse --short HEAD)
commit_date=$(git show -s --format=%cI HEAD)
cat > ../uutils.github.io/static/wasm/version.js <<EOF
const UUTILS_WASM_VERSION = {
commit: "${commit_hash}",
short: "${commit_short}",
date: "${commit_date}"
};
EOF
{
echo "const UUTILS_WASM_VERSION = {"
echo " commit: \"${commit_hash}\","
echo " short: \"${commit_short}\","
echo " date: \"${commit_date}\""
echo "};"
} > ../uutils.github.io/static/wasm/version.js
echo "uutils WASM build: ${commit_short} (${commit_date})"
fi