Skip to content

Commit

Permalink
Next Try
Browse files Browse the repository at this point in the history
  • Loading branch information
PSchmiedmayer committed Jan 9, 2025
1 parent d539610 commit 8f10d1a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,13 @@ jobs:
# Remove excess blank lines
releasenotes = re.sub(r'\n\s*\n', '\n', releasenotes).strip()
# Escape single quotes and line breaks
releasenotes = releasenotes.replace("'", "\\'")
releasenotes = releasenotes.replace("\n", "\\n")
# Write cleaned releasenotes to GITHUB_OUTPUT
with open(os.environ['GITHUB_OUTPUT'], 'a') as output_file:
output_file.write(f"releasenotes<<{releasenotes}\n")
output_file.write(f"releasenotes<<EOF\n{releasenotes}\nEOF\n")
EOF
- name: Formatted Release Notes
run: |
Expand Down

0 comments on commit 8f10d1a

Please sign in to comment.