Compare commits
2 Commits
a8c19073a3
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1bc3606fa3 | ||
|
|
eb3e4613db |
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user