Skip to content

Commit 668875c

Browse files
committed
update ci
1 parent 3e7b593 commit 668875c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,13 @@ jobs:
113113
Write-Host "Bash available via Git for Windows"
114114
}
115115
"powershell" {
116-
# Install PowerShell Core for consistency across platforms
117-
choco install powershell-core -y
116+
# Check if PowerShell Core is available, install if needed
117+
if (!(Get-Command pwsh -ErrorAction SilentlyContinue)) {
118+
Write-Host "Installing PowerShell Core..."
119+
choco install powershell-core -y --force
120+
} else {
121+
Write-Host "PowerShell Core already available"
122+
}
118123
}
119124
default {
120125
Write-Host "Shell ${{ matrix.shell }} not supported on Windows"

0 commit comments

Comments
 (0)