mirror of
https://github.com/MSWS/TTT.git
synced 2025-12-05 22:20:25 -08:00
ci: Prevent CI execution of GitVersion generation +semver:minor
Add condition to GenerateGitVersionInformation target in Versioning.csproj - Prevent execution in continuous integration environments by adding a condition to the GenerateGitVersionInformation target in Versioning.csproj.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<Target Name="GenerateGitVersionInformation" BeforeTargets="BeforeCompile" Condition="'$(OS)' != 'Windows_NT'">
|
||||
<Target Name="GenerateGitVersionInformation" BeforeTargets="BeforeCompile" Condition="'$(OS)' != 'Windows_NT' And '$(CI)' != 'true'">
|
||||
<Exec Command="dotnet-gitversion '$(ProjectDir)' > '$(ProjectDir)/../gitversion.json'"/>
|
||||
</Target>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user