Skip to content

Commit

Permalink
Update Action
Browse files Browse the repository at this point in the history
  • Loading branch information
PSchmiedmayer committed Jan 9, 2025
1 parent 8f10d1a commit 14ad4f5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ jobs:
releasenotes = re.sub(r'\n\s*\n', '\n', releasenotes).strip()
# Escape single quotes and line breaks
releasenotes = releasenotes.replace("'", "\\'")
releasenotes = releasenotes.replace("\n", "\\n")
releasenotes = releasenotes.replace('"', "'")
releasenotes = releasenotes.replace("'", "\\\'")
releasenotes = releasenotes.replace("\n", "\\\n")
# Write cleaned releasenotes to GITHUB_OUTPUT
with open(os.environ['GITHUB_OUTPUT'], 'a') as output_file:
Expand Down

0 comments on commit 14ad4f5

Please sign in to comment.