Skip to content

Commit

Permalink
CI: fix parsing of changelog for release (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw authored Nov 30, 2023
1 parent 177a0d6 commit 40a07e3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,13 @@ jobs:
# Get bullet points from last CHANGELOG entry
CHANGELOG=$(git diff -U0 HEAD^ HEAD | grep '^[+][\* ]' | sed 's/\+//')
echo "Got changelog: $CHANGELOG"
echo "body=$CHANGELOG" >> $GITHUB_OUTPUT
# Support for multiline, see
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings
{
echo 'body<<EOF'
echo "$CHANGELOG"
echo EOF
} >> "$GITHUB_OUTPUT"
- name: Create release on Github
id: create_release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 40a07e3

Please sign in to comment.