Skip to content

Commit b892fc1

Browse files
committed
[skip ci] Fix release-signed CI
Errors on Set release version in Sentry
1 parent f4ab272 commit b892fc1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/release-signed.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ jobs:
2323
strategy:
2424
matrix:
2525
platform: [x64]
26-
framework: [net9.0-windows10.0.26100.0]
2726

2827
# Required for build attestation
2928
permissions:
@@ -211,7 +210,11 @@ jobs:
211210
run: |
212211
$exePath = "${{ runner.temp }}\SignedArtifact\BuildArtifact-${{ env.VERSION }}\CollapseLauncher.exe"
213212
if (Test-Path $exePath) {
214-
$version = "CollapseLauncher@" + ([System.Diagnostics.FileVersionInfo]::GetVersionInfo("./CollapseLauncher.exe").ProductVersion)
213+
$version = ((Get-Item $exePath).VersionInfo.FileVersion)
214+
if ($version.EndsWith(".0")) {
215+
$version = $version.Substring(0, $version.Length - 2)
216+
}
217+
215218
if ($version) {
216219
sentry-cli releases new --org collapse --project collapse-launcher $version
217220
sentry-cli releases set-commits --auto $version

0 commit comments

Comments
 (0)