Skip to content

Commit 2a227d3

Browse files
committed
Match version tags for version calculation.
1 parent 9e23180 commit 2a227d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

default.proj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<Version>$(Version)-local</Version>
1717
</PropertyGroup>
1818
</When>
19-
<When Condition="'$(GITHUB_REF_NAME)'=='master'">
19+
<When Condition="'$(GITHUB_REF_NAME)'=='master' || $([System.Text.RegularExpressions.Regex]::IsMatch($(GITHUB_REF_NAME), `^v.+\..+\..+`))">
2020
<PropertyGroup>
2121
<Version>$(Version)</Version>
2222
</PropertyGroup>
@@ -39,6 +39,8 @@
3939
<SolutionFile Include="Autofac.sln" />
4040
</ItemGroup>
4141
<Target Name="All">
42+
<Message Text="Match: $(Match)" Importance="high" />
43+
<Error Text="Done." />
4244
<Message Text="****************************************" Importance="high" />
4345
<Message Text="Autofac v$(Version)" Importance="high" />
4446
<Message Text="$(Configuration) Configuration" Importance="high" />

0 commit comments

Comments
 (0)