Compare commits

..

2 Commits

Author SHA1 Message Date
Sebastian Seedorf
1bc3606fa3 fix: replace heredoc with printf to avoid YAML indent break 2026-05-19 18:52:38 +02:00
Sebastian Seedorf
eb3e4613db fix: quote description with colon in factorio-mod-push 2026-05-19 18:39:05 +02:00

View File

@@ -10,7 +10,7 @@ inputs:
description: Semver version string to set in info.json, e.g. 1.0.1
required: true
factorio-token:
description: Factorio API key with ModPortal: Upload Mods permission
description: "Factorio API key with ModPortal: Upload Mods permission"
required: true
outputs:
@@ -51,11 +51,7 @@ runs:
if [ ! -f "$MOD_FOLDER/README.md" ]; then
TITLE=$(sed -n 's/.*"title": *"\([^"]*\)".*/\1/p' "$MOD_FOLDER/info.json")
DESC=$(sed -n 's/.*"description": *"\([^"]*\)".*/\1/p' "$MOD_FOLDER/info.json")
cat > "$MOD_FOLDER/README.md" <<- EOF
# $TITLE
$DESC
EOF
printf '# %s\n\n%s\n' "$TITLE" "$DESC" > "$MOD_FOLDER/README.md"
echo "Created $MOD_FOLDER/README.md"
fi