From 6e74ad942fc99f658881943a8d6738f50bab47c6 Mon Sep 17 00:00:00 2001 From: "E.T" Date: Mon, 22 Jan 2024 10:50:14 +0100 Subject: [PATCH] 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 --- .github/workflows/create_nightly_release.yml | 10 +++++----- .github/workflows/create_stable_release.yml | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/create_nightly_release.yml b/.github/workflows/create_nightly_release.yml index a611c672..603cd9f7 100644 --- a/.github/workflows/create_nightly_release.yml +++ b/.github/workflows/create_nightly_release.yml @@ -71,11 +71,11 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - CHANGELOG=$(python3 .github/workflows/changelog.py) - CHANGELOG="${CHANGELOG//'%'/'%25'}" - CHANGELOG="${CHANGELOG//$'\n'/'%0A'}" - CHANGELOG="${CHANGELOG//$'\r'/'%0D'}" - echo "content=$CHANGELOG" >> $GITHUB_OUTPUT + { + echo 'content<> "$GITHUB_OUTPUT" id: changelog - name: Create Release id: create_release diff --git a/.github/workflows/create_stable_release.yml b/.github/workflows/create_stable_release.yml index a0f5bc41..321963f8 100644 --- a/.github/workflows/create_stable_release.yml +++ b/.github/workflows/create_stable_release.yml @@ -55,11 +55,11 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - CHANGELOG=$(python3 .github/workflows/changelog.py ${{ steps.past_version.outputs.past_version }}) - CHANGELOG="${CHANGELOG//'%'/'%25'}" - CHANGELOG="${CHANGELOG//$'\n'/'%0A'}" - CHANGELOG="${CHANGELOG//$'\r'/'%0D'}" - echo "content=$CHANGELOG" >> $GITHUB_OUTPUT + { + echo 'content<> "$GITHUB_OUTPUT" id: changelog - name: Create Release id: create_release