Skip to content

Commit 22b1ae7

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

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,14 @@ jobs:
136136
run: |
137137
# Run the CI pipeline
138138
$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
139+
140+
# Build the command - only add --version-bump if explicitly set (for backward compatibility during bootstrap)
141+
$command = "ci --workspace `"${{ github.workspace }}`" --verbose"
142+
if (![string]::IsNullOrEmpty($versionBump) -and $versionBump -ne "auto") {
143+
$command += " --version-bump $versionBump"
144+
}
145+
146+
dotnet run --project "${{ runner.temp }}/KtsuBuild/KtsuBuild.CLI" -- $command
141147
142148
# Set outputs for downstream jobs
143149
$version = (Get-Content "${{ github.workspace }}/VERSION.md" -Raw).Trim()

0 commit comments

Comments
 (0)