Skip to content

Commit

Permalink
CI: Fix the version check on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamirTalwar committed Mar 1, 2023
1 parent e4d7410 commit 9dec364
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ jobs:
run: 'stack --no-terminal install --local-bin-path=.\out\build\release'
- name: Check version
run: |
$ExpectedVersionString = '${{ github.ref }}' -replace '.+/', ''
$ActualVersionString = ./out/build/release/smoke --version
$ExpectedVersionString = 'Smoke ' + ('${{ github.ref }}' -replace '.+/', '')
$ActualVersionString = .\out\build\release\smoke.exe --version
if ( $ActualVersionString -ne $ExpectedVersionString ) {
echo "Invalid version!"
echo "Expected: ${ExpectedVersionString}"
Expand Down

0 comments on commit 9dec364

Please sign in to comment.