From 344396f8d6d0cb12f6d5e9d13ac725943780041f Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Thu, 1 Sep 2022 01:00:29 +0300 Subject: [PATCH] Update Release.yml --- .github/workflows/Release.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index d7301d4..01efaf9 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -16,14 +16,11 @@ jobs: - name: Release.txt id: read_release run: | - $Release = (Get-Content -Path Release.txt -Encoding utf8 -Raw) - $Release = $Release.replace("%", "%25") - $Release = $Release.replace("*", "%2A") - $Release = $Release.replace("`n", "%0A") - $Release = $Release.replace("`r", "%0D") + # https://en.wikipedia.org/wiki/Percent-encoding + $Release = (Get-Content -Path Release.md -Encoding utf8 -Raw).replace("%", "%25").replace("*", "%2A").replace("`n", "%0A").replace("`r", "%0D") - echo "::set-output name=RELEASE_BODY::$Release" - ${{ steps.read_release.outputs.RELEASE_BODY }} + #echo "::set-output name=RELEASE_BODY::$Release" + echo "RELEASE_BODY=$Release" >> $env:GITHUB_ENV - name: Uploading ReVanced.zip to release uses: svenstaro/upload-release-action@master @@ -31,7 +28,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: Release.txt tag: ${{ github.ref }} - body: ${{ steps.read_release.outputs.RELEASE_BODY }} + body: ${{ env.RELEASE_BODY }} overwrite: true file_glob: true prerelease: $false