From db4b4b8ec548cebd735aeffc3baab48e6ba07654 Mon Sep 17 00:00:00 2001 From: Benjamin Date: Fri, 21 Jun 2024 16:14:06 +0200 Subject: [PATCH] reverted workflows to something that at least kind of worked --- .github/workflows/create_release.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 85b29a804..3e347a68d 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -30,8 +30,12 @@ jobs: - name: Read patch notes id: patch-notes run: | - # Read the contents of patch_notes.txt and base64 encode it - patch_notes=$(cat patch_notes.txt | base64) + # Read the contents of patch_notes.txt + patch_notes=$(cat patch_notes.txt) + # Escape newline characters to be compatible with GitHub Actions output + patch_notes="${patch_notes//'%'/'%25'}" + patch_notes="${patch_notes//$'\n'/'%0A'}" + patch_notes="${patch_notes//$'\r'/'%0D'}" echo "patch_notes=$patch_notes" >> $GITHUB_OUTPUT - name: Create Release @@ -45,6 +49,6 @@ jobs: body: | Compatible HoI4 Version: v${{ steps.get-version.outputs.compatible_version }} - $(echo '${{ steps.patch-notes.outputs.patch_notes }}' | base64 --decode) + ${{ steps.patch-notes.outputs.patch_notes }} draft: false prerelease: false \ No newline at end of file