diff --git a/.github/workflows/Sophia.yml b/.github/workflows/Sophia.yml index 9466799a..bd489076 100644 --- a/.github/workflows/Sophia.yml +++ b/.github/workflows/Sophia.yml @@ -64,11 +64,11 @@ jobs: } $Penultimate = (Invoke-RestMethod @Parameters).tag_name | Select-Object -Index 1 - # https://en.wikipedia.org/wiki/Percent-encoding - $Release = (Get-Content -Path ReleaseNotesTemplate.md -Encoding utf8 -Raw).replace("%", "%25").replace("`n", "%0A").replace("`r", "%0D").replace("NewVersion", "${{ github.ref_name }}").replace("OldVersion", $Penultimate) + # No need to replace special characters with percent-encoding ones + (Get-Content -Path ReleaseNotesTemplate.md -Encoding utf8 -Raw).replace("NewVersion", "${{ github.ref_name }}").replace("OldVersion", $Penultimate) | Set-Content -Path ReleaseNotesTemplate.md -Encoding utf8 -Force # https://trstringer.com/github-actions-multiline-strings/ - echo "::set-output name=RELEASE_BODY::$Release" + Add-Content -Path $env:GITHUB_OUTPUT -Value "ReleaseBody=ReleaseNotesTemplate.md" $ReleaseName = Get-Date -f "dd.MM.yyyy" echo "RELEASE_NAME=$ReleaseName" >> $env:GITHUB_ENV @@ -81,4 +81,4 @@ jobs: files: | Sophia*.zip SHA256SUM - body: ${{ steps.read_release.outputs.RELEASE_BODY }} + body_path: ${{ steps.read_release.outputs.ReleaseBody }} diff --git a/Wrapper/SophiaScriptWrapper.exe b/Wrapper/SophiaScriptWrapper.exe index f4febe94..8dad125b 100644 Binary files a/Wrapper/SophiaScriptWrapper.exe and b/Wrapper/SophiaScriptWrapper.exe differ diff --git a/sophia_script_versions.json b/sophia_script_versions.json index bb419b29..86469fe0 100644 --- a/sophia_script_versions.json +++ b/sophia_script_versions.json @@ -5,5 +5,5 @@ "Sophia_Script_Windows_10_LTSC2021": "5.16.2", "Sophia_Script_Windows_11_PowerShell_5_1": "6.4.2", "Sophia_Script_Windows_11_PowerShell_7": "6.4.2", - "Sophia_Script_Wrapper": "2.6.4" + "Sophia_Script_Wrapper": "2.6.5" }