Skip to content

Commit

Permalink
Windows: gh: improve version definition
Browse files Browse the repository at this point in the history
  • Loading branch information
jgressmann committed Feb 27, 2025
1 parent ed196d6 commit af3a282
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion appveyor/windows.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ SET

REM Try to set version string from AppVeyor, Github Action
if "%GITHUB_ACTION%" NEQ "" (
set VERSION_STR=!GITHUB_REF_NAME:~1!.%GITHUB_RUN_NUMBER%
if "%GITHUB_REF_TYPE%" EQU "tag" (
set VERSION_STR=!GITHUB_REF_NAME:~1!.%GITHUB_RUN_NUMBER%
) else (
set VERSION_STR=0.0.0.0
)
) else if "%APPVEYOR_REPO_TAG%" EQU "true" (
set VERSION_STR=!APPVEYOR_REPO_TAG_NAME:~1!.%APPVEYOR_BUILD_NUMBER%
) else (
Expand Down

0 comments on commit af3a282

Please sign in to comment.