Skip to content

Commit 2e21b62

Browse files
committed
Fix: Escape char correctly
1 parent 8526039 commit 2e21b62

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ jobs:
3737
if: github.ref_type == 'tag'
3838
run: |
3939
$tag = $env:GITHUB_REF -replace 'refs/tags/', ''
40-
(Get-Content -Path "vSMR\SMRPlugin.hpp") -replace '#define MY_PLUGIN_VERSION.*', "#define MY_PLUGIN_VERSION \"$tag\"" | Set-Content -Path "vSMR\SMRPlugin.hpp"
41-
40+
(Get-Content -Path "vSMR\SMRPlugin.hpp") -replace '#define MY_PLUGIN_VERSION.*', "#define MY_PLUGIN_VERSION `"$tag`"" | Set-Content -Path "vSMR\SMRPlugin.hpp"
41+
shell: pwsh
42+
4243
- name: Build DLL
4344
run: msbuild vSMR.sln /p:Configuration=Release /p:Platform='Win32' /p:VcpkgTriplet=x86-windows-static /m
4445

0 commit comments

Comments
 (0)