Skip to content

Commit af3a282

Browse files
committed
Windows: gh: improve version definition
1 parent ed196d6 commit af3a282

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

appveyor/windows.cmd

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ SET
33

44
REM Try to set version string from AppVeyor, Github Action
55
if "%GITHUB_ACTION%" NEQ "" (
6-
set VERSION_STR=!GITHUB_REF_NAME:~1!.%GITHUB_RUN_NUMBER%
6+
if "%GITHUB_REF_TYPE%" EQU "tag" (
7+
set VERSION_STR=!GITHUB_REF_NAME:~1!.%GITHUB_RUN_NUMBER%
8+
) else (
9+
set VERSION_STR=0.0.0.0
10+
)
711
) else if "%APPVEYOR_REPO_TAG%" EQU "true" (
812
set VERSION_STR=!APPVEYOR_REPO_TAG_NAME:~1!.%APPVEYOR_BUILD_NUMBER%
913
) else (

0 commit comments

Comments
 (0)