File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
1526concurrency :
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()
You can’t perform that action at this time.
0 commit comments