Skip to content

Commit

Permalink
fix: replace newlines in github actions to avoid error on building re…
Browse files Browse the repository at this point in the history
…lease
  • Loading branch information
derkalle4 committed Nov 19, 2024
1 parent 7dfa764 commit 416b748
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
else
last_tag=$(git rev-list --max-parents=0 HEAD)
fi
release_notes=$(git log --pretty=format:"[%h](https://github.com/${{ github.repository }}/commit/%H) - %s (%an)" $last_tag..HEAD | tr '\n' '|' )
release_notes=$(git log --pretty=format:"[%h](https://github.com/${{ github.repository }}/commit/%H) - %s (%an)" $last_tag..HEAD | sed ':a;N;$!ba;s/\n/%0A/g')
echo "release_notes=$release_notes" >> $GITHUB_ENV
- name: Add Release on Github
Expand All @@ -97,7 +97,7 @@ jobs:
with:
tag_name: ${{ env.version }}
release_name: ${{ env.version }}
body: ${{ env.release_notes }} | tr '|' '\n'
body: ${{ env.release_notes }}
draft: false
prerelease: false

Expand Down

0 comments on commit 416b748

Please sign in to comment.