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