Skip to content

Commit e0f56d7

Browse files
committed
Test
1 parent bc20b31 commit e0f56d7

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)