Skip to content

Commit

Permalink
Correct multiline output from git log in release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgospodinow committed Dec 1, 2024
1 parent 342f0fa commit 0fdacc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release-on-version-change.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
if: env.changed == 'true'
run: |
echo "Generating changelog..."
CHANGELOG=$(git log ${{ env.previous_tag }}..HEAD --pretty=format:"- %s (%h)")
CHANGELOG=$(git log ${{ env.previous_tag }}..HEAD --pretty=format:"- %s (%h)" | sed ':a;N;$!ba;s/\n/\\n/g')
echo "Changelog: $CHANGELOG"
echo "changelog=$CHANGELOG" >> $GITHUB_ENV
Expand Down

0 comments on commit 0fdacc1

Please sign in to comment.