From a5e4475a9a549debcff1824f5293a4cf8e6b1df7 Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Thu, 1 Sep 2022 01:08:46 +0300 Subject: [PATCH] Update Build.yaml --- .github/workflows/Build.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/Build.yaml b/.github/workflows/Build.yaml index 9af15a6..2d9acba 100644 --- a/.github/workflows/Build.yaml +++ b/.github/workflows/Build.yaml @@ -176,10 +176,11 @@ jobs: - name: Release.txt id: read_release run: | - $Release = (Get-Content -Path Release.txt -Encoding utf8 -Raw).replace("%", "[char]0x25").replace("*", "[char]0x002A").replace("\n", "[char]0x0A").replace("\r", "[char]0x0D") - $Release + # https://en.wikipedia.org/wiki/Percent-encoding + $Release = (Get-Content -Path Release.md -Encoding utf8 -Raw).replace("%", "%25").replace("`n", "%0A").replace("`r", "%0D") + + # https://trstringer.com/github-actions-multiline-strings/ echo "::set-output name=RELEASE_BODY::$Release" - ${{ steps.read_release.outputs.RELEASE_BODY }} - name: Uploading ReVanced.zip to release uses: svenstaro/upload-release-action@master