You've already forked uutils.github.io
mirror of
https://github.com/uutils/uutils.github.io.git
synced 2026-06-10 16:12:28 -07:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user