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:
parent
5f05718c3e
commit
6eff1e9fa6
1 changed files with 5 additions and 5 deletions
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
|
|
@ -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}" \
|
||||
|
|
|
|||
Loading…
Reference in a new issue