Use heredoc to write release notes without bash interpretation

Backticks in GitHub Actions output were still being interpreted even
when assigned to a variable and then echoed to a file. Use heredoc
with single quotes to prevent any bash expansion.

Related to #671
This commit is contained in:
rcourtman 2025-11-11 16:21:22 +00:00
parent 5f05718c3e
commit 6eff1e9fa6

View file

@ -217,12 +217,12 @@ jobs:
echo "Creating draft release for ${TAG}..." echo "Creating draft release for ${TAG}..."
# Use LLM-generated release notes # Write release notes directly from GitHub output to file
NOTES="${{ steps.generate_notes.outputs.RELEASE_NOTES }}" # This avoids bash interpreting backticks in the markdown
# Write notes to file to avoid bash interpreting backticks as commands
NOTES_FILE=$(mktemp) NOTES_FILE=$(mktemp)
echo "$NOTES" > "$NOTES_FILE" cat <<'NOTES_EOF' > "$NOTES_FILE"
${{ steps.generate_notes.outputs.RELEASE_NOTES }}
NOTES_EOF
# Create draft release with generated notes # Create draft release with generated notes
gh release create "${TAG}" \ gh release create "${TAG}" \