File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -33,16 +33,12 @@ jobs:
3333 - name : Build
3434 run : |
3535 if ("${{ github.event_name }}" -eq "pull_request" -and "${{ github.head_ref }}" -ne "") {
36- $gitDescribe = git describe --tags --abbrev=0 2>$null
37- if ($gitDescribe -match '^v?(\d+\.\d+\.\d+)') {
38- $baseVersion = $matches[1]
39-
40- $branchName = "${{ github.head_ref }}" -replace '[/\\]', '-' -replace '[^a-zA-Z0-9\-]', ''
41- $version = "$baseVersion-octopus-$branchName.${{ github.run_number }}"
42-
43- Write-Host "PR build - overriding version to: $version"
44- $env:MINVERVERSIONOVERRIDE = $version
45- }
36+ $branchName = "${{ github.head_ref }}" -replace '[/\\]', '-' -replace '[^a-zA-Z0-9\-]', ''
37+ $preReleaseIds = "octopus-$branchName.${{ github.run_number }}"
38+
39+ Write-Host "PR build - setting default pre-release identifiers to: $preReleaseIds (height ignored)"
40+ $env:MINVERDEFAULTPRERELEASEIDENTIFIERS = $preReleaseIds
41+ $env:MINVERIGNOREHEIGHT = "true"
4642 }
4743
4844 dotnet build LibGit2Sharp.sln --configuration Release
You can’t perform that action at this time.
0 commit comments