We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e7b593 commit 668875cCopy full SHA for 668875c
.github/workflows/ci.yml
@@ -113,8 +113,13 @@ jobs:
113
Write-Host "Bash available via Git for Windows"
114
}
115
"powershell" {
116
- # Install PowerShell Core for consistency across platforms
117
- choco install powershell-core -y
+ # Check if PowerShell Core is available, install if needed
+ 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
+ }
123
124
default {
125
Write-Host "Shell ${{ matrix.shell }} not supported on Windows"
0 commit comments