Skip to content

Commit

Permalink
CI: simplify changelog parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed Nov 28, 2023
1 parent 5a00fe7 commit 2533e38
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ jobs:
run: |
# Get bullet points from last CHANGELOG entry
CHANGELOG=$(git diff -U0 HEAD^ HEAD | grep '^[+][\* ]' | sed 's/\+//')
# Support for multiline, see
# https://github.com/actions/create-release/pull/11#issuecomment-640071918
CHANGELOG="${CHANGELOG//'%'/'%25'}"
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
echo "Got changelog: $CHANGELOG"
echo "body=$CHANGELOG" >> $GITHUB_OUTPUT
- name: Create release on Github
Expand Down

0 comments on commit 2533e38

Please sign in to comment.