Skip to content

Commit

Permalink
Update e2e-tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aparnajyothi-y authored Jul 4, 2024
1 parent f3a9db3 commit 95a5eea
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,14 @@ jobs:
add-apt-repository universe
apt-get update
# Install PowerShell
apt-get install -y powershell
# Install PowerShell using PowerShell syntax
if (! apt-get install -y powershell) {
# Fallback to manual installation if apt-get fails
wget https://github.com/PowerShell/PowerShell/releases/download/v7.2.6/powershell-7.2.6-linux-x64.tar.gz
mkdir -p /usr/local/powershell/7.2.6
tar -xvf ./powershell-7.2.6-linux-x64.tar.gz -C /usr/local/powershell/7.2.6
ln -s /usr/local/powershell/7.2.6/pwsh /usr/bin/pwsh
}
- name: Clear toolcache
shell: pwsh
Expand Down

0 comments on commit 95a5eea

Please sign in to comment.