Skip to content

Commit

Permalink
add error msg & fix error in build script
Browse files Browse the repository at this point in the history
  • Loading branch information
radj307 committed Nov 22, 2023
1 parent 770e298 commit 3cc0744
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/GenerateRelease-csharp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ jobs:

- name: Validate Product Version Number
run: |
$ExeVersion = $(Get-Item publish/installer/VolumeControl.exe).VersionInfo.ProductVersion
$ExeVersion = $(Get-Item publish/VolumeControl.exe).VersionInfo.ProductVersion
$CsprojVersion = $(.\.github\workflows\scripts\SetProperty.ps1 VolumeControl/VolumeControl.csproj Version -Quiet)
if ($ExeVersion -ne $CsprojVersion) { exit 1 }
if ($ExeVersion -ne $CsprojVersion) { echo "The executable's product version differs from the one in the CSPROJ file!" ; exit 1 }
- name: Stage Binary (Portable Version)
run: foreach($file in $((dir "publish" | where {$_.extension -in ".exe"}).Fullname)){ mv "$file" "STAGING" }
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
run: |
$ExeVersion = $(Get-Item publish/installer/VolumeControl.exe).VersionInfo.ProductVersion
$CsprojVersion = $(.\.github\workflows\scripts\SetProperty.ps1 VolumeControl/VolumeControl.csproj Version -Quiet)
if ($ExeVersion -ne $CsprojVersion) { exit 1 }
if ($ExeVersion -ne $CsprojVersion) { echo "The executable's product version differs from the one in the CSPROJ file!" ; exit 1 }
- name: Compile VolumeControl Installer
uses: Minionguyjpro/[email protected]
Expand Down

0 comments on commit 3cc0744

Please sign in to comment.