Skip to content

Commit

Permalink
ci: fix changelog generation
Browse files Browse the repository at this point in the history
  • Loading branch information
yurijmikhalevich committed Aug 21, 2023
1 parent ec65b92 commit f8f0fab
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,11 @@ jobs:
git fetch --unshallow
PREVIOUS_TAG="$(git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1))"
CHANGELOG="$(git --no-pager log --pretty="format:- %s" $PREVIOUS_TAG..$GITHUB_REF_NAME)"
CHANGELOG="${CHANGELOG//'%'/'%25'}"
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
echo "CHANGELOG=$CHANGELOG" >> $GITHUB_OUTPUT
{
echo 'CHANGELOG<<EOF'
echo $CHANGELOG
echo EOF
} >> "$GITHUB_OUTPUT"
- name: Create Release
uses: ncipollo/release-action@v1
with:
Expand Down

0 comments on commit f8f0fab

Please sign in to comment.