Skip to content

Commit afb27b3

Browse files
committed
Try again
1 parent 7222e86 commit afb27b3

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/ci.yml

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

0 commit comments

Comments
 (0)