diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2fe2a3c..1925623 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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