Skip to content

Commit 1d15465

Browse files
SyncFileContentsSyncFileContents
authored andcommitted
Sync .github\workflows\dotnet.yml
1 parent cc480de commit 1d15465

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/dotnet.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ on:
1111
schedule:
1212
- cron: "0 23 * * *" # Daily at 11 PM UTC
1313
workflow_dispatch: # Allow manual triggers
14+
inputs:
15+
version-bump:
16+
description: 'Version bump type'
17+
required: false
18+
default: 'auto'
19+
type: choice
20+
options:
21+
- auto
22+
- patch
23+
- minor
24+
- major
1425

1526
concurrency:
1627
group: ${{ github.workflow }}-${{ github.ref }}
@@ -124,7 +135,9 @@ jobs:
124135
EXPECTED_OWNER: ktsu-dev
125136
run: |
126137
# Run the CI pipeline
127-
dotnet run --project "${{ runner.temp }}/KtsuBuild/KtsuBuild.CLI" -- ci --workspace "${{ github.workspace }}" --verbose
138+
$versionBump = "${{ github.event.inputs.version-bump }}"
139+
if ([string]::IsNullOrEmpty($versionBump)) { $versionBump = "auto" }
140+
dotnet run --project "${{ runner.temp }}/KtsuBuild/KtsuBuild.CLI" -- ci --workspace "${{ github.workspace }}" --verbose --version-bump $versionBump
128141
129142
# Set outputs for downstream jobs
130143
$version = (Get-Content "${{ github.workspace }}/VERSION.md" -Raw).Trim()

0 commit comments

Comments
 (0)