From 668875ce99429d46199880dc960c582c9b7e6dc9 Mon Sep 17 00:00:00 2001 From: AmirSa12 Date: Sun, 17 Aug 2025 23:13:42 +0330 Subject: [PATCH] update ci --- .github/workflows/ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b53e7dd..f8c9917 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -113,8 +113,13 @@ jobs: Write-Host "Bash available via Git for Windows" } "powershell" { - # Install PowerShell Core for consistency across platforms - choco install powershell-core -y + # Check if PowerShell Core is available, install if needed + if (!(Get-Command pwsh -ErrorAction SilentlyContinue)) { + Write-Host "Installing PowerShell Core..." + choco install powershell-core -y --force + } else { + Write-Host "PowerShell Core already available" + } } default { Write-Host "Shell ${{ matrix.shell }} not supported on Windows" -- 2.51.2