Skip to content

Commit

Permalink
Fix commit hash parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Gumball2415 committed Oct 19, 2023
1 parent 6bbdfd1 commit 53f9493
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build-artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ jobs:
- uses: actions/checkout@master
with:
fetch-depth: 0
- name: Set commit hash variable
shell: powershell
run: echo "commithash=$(git describe --tags)" >> $env:GITHUB_ENV
- name: Build program
shell: cmd
run: |
for /f "tokens=*" %%a in ('git describe --tags') do (set ${{ env.commithash }}=%%a)
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsamd64_x86.bat"
call msbuild -m:5 -nologo -p:Configuration="${{ matrix.configuration }}" -p:Platform="${{ matrix.platform }}"
if %ERRORLEVEL%==1 exit %ERRORLEVEL%
Expand Down

0 comments on commit 53f9493

Please sign in to comment.