Skip to content

Commit 98dcf06

Browse files
committed
rm installation step
1 parent 668875c commit 98dcf06

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,8 @@ jobs:
7272
sudo apt-get install -y fish
7373
;;
7474
powershell)
75-
wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb
76-
sudo dpkg -i packages-microsoft-prod.deb
77-
sudo apt-get update
78-
sudo apt-get install -y powershell
75+
# PowerShell Core is pre-installed on GitHub Actions runners
76+
echo "PowerShell Core already available"
7977
;;
8078
esac
8179
@@ -113,13 +111,8 @@ jobs:
113111
Write-Host "Bash available via Git for Windows"
114112
}
115113
"powershell" {
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-
}
114+
# PowerShell Core is pre-installed on GitHub Actions runners
115+
Write-Host "PowerShell Core already available"
123116
}
124117
default {
125118
Write-Host "Shell ${{ matrix.shell }} not supported on Windows"

0 commit comments

Comments
 (0)