File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -33,11 +33,13 @@ jobs:
3333 - name : Set nightly version
3434 if : github.event_name == 'schedule' || inputs.nightly
3535 run : |
36- $version = & dotnet minver --verbosity quiet
37- if ($version -match '^(\d+\.\d+\.\d+)') {
36+ $gitVersion = git describe --tags --abbrev=0 2>$null
37+ if ($gitVersion -match '^v? (\d+\.\d+\.\d+)') {
3838 $baseVersion = $matches[1]
39- echo "MINVER_VERSION_OVERRIDE=$baseVersion-octopus-nightly-${{ github.run_number }}" >> $env:GITHUB_ENV
39+ } else {
40+ $baseVersion = "0.32.0"
4041 }
42+ echo "MINVER_VERSION_OVERRIDE=$baseVersion-octopus-nightly-${{ github.run_number }}" >> $env:GITHUB_ENV
4143 shell : pwsh
4244 - name : Build
4345 run : dotnet build LibGit2Sharp.sln --configuration Release
You can’t perform that action at this time.
0 commit comments