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}..."
|
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}" \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue