Skip to content

Commit 7222e86

Browse files
committed
Add nightly build
1 parent 8219c8d commit 7222e86

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ on:
77
- '[0-9]+.[0-9]+.[0-9]+-*'
88
pull_request:
99
workflow_dispatch:
10+
inputs:
11+
nightly:
12+
description: 'Build as nightly version'
13+
required: false
14+
type: boolean
15+
default: false
16+
schedule:
17+
- cron: '0 15 * * *' # Run at 3 PM UTC (1 AM Melbourne AEST / 2 AM AEDT)
1018
env:
1119
DOTNET_NOLOGO: true
1220
jobs:
@@ -24,6 +32,8 @@ jobs:
2432
dotnet-version: 9.0.x
2533
- name: Build
2634
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' }}
2737
- name: Upload packages
2838
uses: actions/upload-artifact@v4.3.1
2939
with:

0 commit comments

Comments
 (0)