File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed
Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments