Skip to content

Commit

Permalink
Only override VersionPrefix if it has no value
Browse files Browse the repository at this point in the history
This prevents the targets from overwriting an envvar specified in the CI workflow.
  • Loading branch information
kzu committed Feb 21, 2023
1 parent 1ec6385 commit 28a27ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
after the fixed prefix. This allows dogfooding a branch build.
The suffix is sanitized and optionally turned into
-->
<VersionPrefix>42.42.42</VersionPrefix>
<VersionPrefix Condition="$(VersionPrefix) == ''">42.42.42</VersionPrefix>
</PropertyGroup>

<PropertyGroup Label="Version" Condition="$(VersionLabel) != ''">
Expand Down

0 comments on commit 28a27ba

Please sign in to comment.