Skip to content

Commit

Permalink
Make tag script appveyor-aware
Browse files Browse the repository at this point in the history
  • Loading branch information
hst125fan committed Aug 11, 2019
1 parent ce673c4 commit 43033d6
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion get_current_git_tag.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
@echo off
IF "%APPVEYORISTAG%"=="true" goto APPVEYORTAG
IF "%APPVEYORISTAG%"=="false" goto APPVEYORNOTAG

set HEADCOMMIT=null
FOR /F %%i IN (%CD%\.git\HEAD) DO (
set HEADCONTENT=%%i
Expand All @@ -19,4 +22,15 @@ for /F %%f in ('dir /b %CD%\.git\refs\tags\') do (
)
)
)
if %FOUND%==no echo untagged
if %FOUND%==no echo untagged
goto END

:APPVEYORTAG
echo %APPVEYORTAGNAME%
goto END

:APPVEYORNOTAG
echo untagged
goto END

:END

0 comments on commit 43033d6

Please sign in to comment.