Skip to content

Commit

Permalink
[ci] Fix versions again when no sha provided
Browse files Browse the repository at this point in the history
  • Loading branch information
rmarinho committed Feb 27, 2024
1 parent e109469 commit 3b442b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eng/Versions.targets
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@
<GitSemVerDashLabel Condition="'$(GitSemVerLabel)' != ''" >-$(GitSemVerLabel)</GitSemVerDashLabel>
</PropertyGroup>
<ItemGroup>
<VersionMetadata Include="$(GitCommits)" Condition="'$(GitSemVerDashLabel)' == ''" />
<VersionMetadata Condition="'$(GitSemVerDashLabel)' == '' and '$(GitCommits)' != ''" Include="$(GitCommits)" />

<VersionMetadata Condition="$(CI) and '$(BUILD_REASON)' == 'PullRequest'"
Include="pr.$(SYSTEM_PULLREQUEST_PULLREQUESTNUMBER)"/>

<VersionMetadata Include="sha.$(GitCommit)"/>
<VersionMetadata Condition="'$(GitCommit)' != ''" Include="sha.$(GitCommit)"/>

<VersionMetadata Condition="$(CI)"
Include="azdo.$(BUILD_BUILDID)"/>
Expand Down

0 comments on commit 3b442b2

Please sign in to comment.