Browse Source

Update Sophia.yml

Update Sophia.yml

Wrapper 2.6.5

Update sophia_script_versions.json

Update Sophia.yml
pull/469/head
Dmitry Nefedov 1 year ago
parent
commit
87580d72c0
  1. 8
      .github/workflows/Sophia.yml
  2. BIN
      Wrapper/SophiaScriptWrapper.exe
  3. 2
      sophia_script_versions.json

8
.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 }}

BIN
Wrapper/SophiaScriptWrapper.exe

Binary file not shown.

2
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"
}

Loading…
Cancel
Save