Skip to content

Commit 8dd8b1d

Browse files
committed
Another atempt at a nightly build
1 parent afb27b3 commit 8dd8b1d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/ci.yml

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

0 commit comments

Comments
 (0)