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}..."
# Use LLM-generated release notes
NOTES="${{ steps.generate_notes.outputs.RELEASE_NOTES }}"
# Write notes to file to avoid bash interpreting backticks as commands
# Write release notes directly from GitHub output to file
# This avoids bash interpreting backticks in the markdown
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
gh release create "${TAG}" \