File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,17 @@ jobs:
3030 uses : actions/setup-dotnet@v4.0.0
3131 with :
3232 dotnet-version : 9.0.x
33+ - name : Set nightly version
34+ if : github.event_name == 'schedule' || inputs.nightly
35+ run : |
36+ $version = & dotnet minver --verbosity quiet
37+ if ($version -match '^(\d+\.\d+\.\d+)') {
38+ $baseVersion = $matches[1]
39+ echo "MINVER_VERSION_OVERRIDE=$baseVersion-octopus-nightly-${{ github.run_number }}" >> $env:GITHUB_ENV
40+ }
41+ shell : pwsh
3342 - name : Build
3443 run : dotnet build LibGit2Sharp.sln --configuration Release
35- env :
36- MinVerDefaultPreReleaseIdentifiers : ${{ (github.event_name == 'schedule' || inputs.nightly) && format('octopus-nightly-{0}', github.run_number) || 'octopus.0' }}
3744 - name : Upload packages
3845 uses : actions/upload-artifact@v4.3.1
3946 with :
You can’t perform that action at this time.
0 commit comments