From 416b7489dfacbfa8eed7380ad3007fba1c3626b2 Mon Sep 17 00:00:00 2001 From: Kalle Date: Tue, 19 Nov 2024 13:30:04 +0100 Subject: [PATCH] fix: replace newlines in github actions to avoid error on building release --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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