Skip to content

Commit

Permalink
Fix MSVC CI build on non-PR refs
Browse files Browse the repository at this point in the history
- Pass github ref variable without quotes to echo command on Windows
  • Loading branch information
sturnclaw authored and Webster Sheets committed Feb 2, 2024
1 parent cdd32cd commit 331dcbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ jobs:

- name: Build MSVC
shell: cmd
run: |
for /f %%i in ('echo "${{ github.ref }}" ^| awk -F "/" "/pull/ { print \"PR#\"$3 } /heads/ { print $3 }"') do set PROJECT_VERSION_INFO=%%i
run: |
for /f %%i in ('echo ${{ github.ref }} ^| awk -F "/" "/pull/ { print \"PR#\"$3 } /heads/ { print $3 }"') do set PROJECT_VERSION_INFO=%%i
echo Project Version: %PROJECT_VERSION_INFO%
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
cd pioneer
Expand Down

0 comments on commit 331dcbc

Please sign in to comment.