Skip to content

Commit 3432374

Browse files
authored
test-setup-build: Properly escape quotes (#970)
The back ticks were meant to escape quotes, not the dollar sign.
1 parent e70a455 commit 3432374

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/test-setup-build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
Write-Output "::error::Expected build tools version `"${env:TEST_BUILD_TOOLS_EXPECTED_VERSION}`", but got `"${BuildToolsVersion}`"."
8484
$HasError = $true
8585
} else {
86-
Write-Output "✅ Build tools version `${BuildToolsVersion}` matches expected version."
86+
Write-Output "✅ Build tools version `"${BuildToolsVersion}`" matches expected version."
8787
}
8888
8989
# Check if the correct MSVC version is installed.
@@ -92,7 +92,7 @@ jobs:
9292
$InstallPath = (& "$VSWhere" -latest -products * -format json | ConvertFrom-Json).installationPath
9393
$MSVCDir = Join-Path $InstallPath "VC" "Tools" "MSVC" $BuildToolsVersion
9494
if (Test-Path -Path $MSVCDir) {
95-
Write-Output "✅ MSVC version `${env:TEST_MSVC_VERSION}`" is installed."
95+
Write-Output "✅ MSVC version `"${env:TEST_MSVC_VERSION}`" is installed."
9696
} else {
9797
Write-Output "::error::MSVC directory not found: `"${MSVCDir}`"."
9898
$HasError = $true
@@ -189,7 +189,7 @@ jobs:
189189
Write-Output "::error::Expected build tools version `"${env:TEST_BUILD_TOOLS_EXPECTED_VERSION}`", but got `"${BuildToolsVersion}`"."
190190
$HasError = $true
191191
} else {
192-
Write-Output "✅ Build tools version `${BuildToolsVersion}` matches expected version."
192+
Write-Output "✅ Build tools version `"${BuildToolsVersion}`" matches expected version."
193193
}
194194
195195
# Check if the correct MSVC version is installed.
@@ -198,7 +198,7 @@ jobs:
198198
$InstallPath = (& "$VSWhere" -latest -products * -format json | ConvertFrom-Json).installationPath
199199
$MSVCDir = Join-Path $InstallPath "VC" "Tools" "MSVC" $BuildToolsVersion
200200
if (Test-Path -Path $MSVCDir) {
201-
Write-Output "✅ MSVC version `${env:TEST_MSVC_VERSION}`" is installed."
201+
Write-Output "✅ MSVC version `"${env:TEST_MSVC_VERSION}`" is installed."
202202
} else {
203203
Write-Output "::error::MSVC directory not found: `"${MSVCDir}`"."
204204
$HasError = $true

0 commit comments

Comments
 (0)