Update Release.yml

This commit is contained in:
Dmitry Nefedov
2022-09-01 00:45:48 +03:00
committed by GitHub
parent c8b8354663
commit ff7b4c7a33

View File

@@ -17,10 +17,10 @@ jobs:
id: read_release id: read_release
run: | run: |
$Release = (Get-Content -Path Release.txt -Encoding utf8 -Raw) $Release = (Get-Content -Path Release.txt -Encoding utf8 -Raw)
$Release = $Release.replace("%", $([char]::ConvertFromUtf32(0x25))) $Release = $Release.replace("%", "%25")
$Release = $Release.replace("*", $([char]::ConvertFromUtf32(0x002A))) $Release = $Release.replace("*", "%2A")
$Release = $Release.replace("`n", $([char]::ConvertFromUtf32(0x0A))) $Release = $Release.replace("`n", "%0A")
$Release = $Release.replace("`r", $([char]::ConvertFromUtf32(0x0D))) $Release = $Release.replace("`r", "%0D")
echo "::set-output name=RELEASE_BODY::$Release" echo "::set-output name=RELEASE_BODY::$Release"
${{ steps.read_release.outputs.RELEASE_BODY }} ${{ steps.read_release.outputs.RELEASE_BODY }}