File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- 5.10.2-1-g97bdb34 -dirty
1
+ 5.10.2-2-g2c387f2 -dirty
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ extract_semver_from_describe() {
31
31
if command -v dotnet-gitversion > /dev/null 2>&1 ; then
32
32
# Try to get MajorMinorPatch from GitVersion
33
33
GITVERSION_OUTPUT=$( dotnet-gitversion -config .gitversion -showvariable MajorMinorPatch 2> /dev/null || echo " " )
34
- # Check if output is a valid version number (only digits and dots)
35
- if [ -n " $GITVERSION_OUTPUT " ] && echo " $GITVERSION_OUTPUT " | grep -qE ' ^[0-9]+\.[0-9]+\.[0-9]+$' ; then
34
+ # Check if output is a valid version number (only digits and dots) and not default
35
+ if [ -n " $GITVERSION_OUTPUT " ] && echo " $GITVERSION_OUTPUT " | grep -qE ' ^[0-9]+\.[0-9]+\.[0-9]+$' && [ " $GITVERSION_OUTPUT " != " 1.0.0 " ] ; then
36
36
update_version_file " $GITVERSION_OUTPUT "
37
37
exit 0
38
38
fi
You can’t perform that action at this time.
0 commit comments