From 9dec3641280c8e9440588377c1b099ef4d55cd67 Mon Sep 17 00:00:00 2001 From: Samir Talwar Date: Wed, 1 Mar 2023 20:52:30 +0100 Subject: [PATCH] CI: Fix the version check on Windows. --- .github/workflows/release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3364873..917d74d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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}"