Fix changelog building (#1611)

This commit is contained in:
flower
2025-11-06 03:52:46 +03:00
committed by GitHub
parent 63b6fc53e3
commit e505ea4fe4

View File

@@ -19,15 +19,14 @@ jobs:
id: github_changelog id: github_changelog
run: | run: |
changelog=$(git log $(git tag | tail -2 | head -1)..HEAD --no-merges --oneline) changelog=$(git log $(git tag | tail -2 | head -1)..HEAD --no-merges --oneline)
changelog="${changelog//'%'/'%25'}" echo "changelog<<EOF" >> $GITHUB_OUTPUT
changelog="${changelog//$'\n'/'%0A'}" echo "$changelog" >> $GITHUB_OUTPUT
changelog="${changelog//$'\r'/'%0D'}" echo "EOF" >> $GITHUB_OUTPUT
echo "changelog=${changelog}" >> $GITHUB_ENV
- name: Create release - name: Create release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with:
body: ${{ env.changelog }} body: ${{ steps.github_changelog.outputs.changelog }}
env: env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }} GITHUB_TOKEN: ${{ secrets.GH_PAT }}