Gh workflow changelog formatting fix (#1803)

* Remove replacement of newlines with hex codes

Assuming that its unnecessary as we are no longer outputting these via stdout but pipe it into some binary that could handle newlines in its stdin therefore don't need and support this transformation

* Attempt 2 after reading gh docs :D

* Fix changelog for stable release too
This commit is contained in:
E.T 2024-01-22 10:50:14 +01:00 committed by GitHub
parent 0f85f247b6
commit 6e74ad942f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 10 deletions

View File

@ -71,11 +71,11 @@ jobs:
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | run: |
CHANGELOG=$(python3 .github/workflows/changelog.py) {
CHANGELOG="${CHANGELOG//'%'/'%25'}" echo 'content<<EOF'
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}" python3 .github/workflows/changelog.py
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}" echo EOF
echo "content=$CHANGELOG" >> $GITHUB_OUTPUT } >> "$GITHUB_OUTPUT"
id: changelog id: changelog
- name: Create Release - name: Create Release
id: create_release id: create_release

View File

@ -55,11 +55,11 @@ jobs:
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | run: |
CHANGELOG=$(python3 .github/workflows/changelog.py ${{ steps.past_version.outputs.past_version }}) {
CHANGELOG="${CHANGELOG//'%'/'%25'}" echo 'content<<EOF'
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}" python3 .github/workflows/changelog.py ${{ steps.past_version.outputs.past_version }}
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}" echo EOF
echo "content=$CHANGELOG" >> $GITHUB_OUTPUT } >> "$GITHUB_OUTPUT"
id: changelog id: changelog
- name: Create Release - name: Create Release
id: create_release id: create_release