Update Release.yml

This commit is contained in:
Dmitry Nefedov
2022-09-01 01:00:29 +03:00
committed by GitHub
parent ff7b4c7a33
commit 344396f8d6

View File

@@ -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