Commit 2ec6171f by CaIon

fix: replace ASCII apostrophes in release notes to prevent script breakage

parent 8a7a4907
......@@ -113,7 +113,9 @@ jobs:
{
echo "tag=$RELEASE_TAG"
echo "body<<$delimiter"
jq -r '.body // ""' <<< "$release_json"
# sync_to_gitcode embeds this input in a single-quoted shell string.
# Replace ASCII apostrophes so release notes cannot break its script.
jq -r '.body // ""' <<< "$release_json" | sed "s/'/’/g"
echo "$delimiter"
echo "prerelease=$(jq -r '.isPrerelease' <<< "$release_json")"
} >> "$GITHUB_OUTPUT"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment