Skip to content

Commit 4337412

Browse files
committed
fix: updating powershell
1 parent 0535f7d commit 4337412

1 file changed

Lines changed: 33 additions & 1 deletion

File tree

.github/workflows/Release.yaml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,40 @@ on:
66
jobs:
77
test:
88
name: Release module
9-
runs-on: windows-latest
9+
runs-on: ubuntu-latest
1010
steps:
11+
- name: Updating PowerShell
12+
run: |
13+
###################################
14+
# Prerequisites
15+
16+
# Update the list of packages
17+
sudo apt-get update
18+
19+
# Install pre-requisite packages.
20+
sudo apt-get install -y wget apt-transport-https software-properties-common
21+
22+
# Get the version of Ubuntu
23+
source /etc/os-release
24+
25+
# Download the Microsoft repository keys
26+
wget -q https://packages.microsoft.com/config/ubuntu/$VERSION_ID/packages-microsoft-prod.deb
27+
28+
# Register the Microsoft repository keys
29+
sudo dpkg -i packages-microsoft-prod.deb
30+
31+
# Delete the the Microsoft repository keys file
32+
rm packages-microsoft-prod.deb
33+
34+
# Update the list of packages after we added packages.microsoft.com
35+
sudo apt-get update
36+
37+
###################################
38+
# Install PowerShell
39+
sudo apt-get install -y powershell
40+
41+
# Start PowerShell
42+
pwsh -v
1143
- name: Checkout code
1244
uses: actions/checkout@v3
1345
with:

0 commit comments

Comments
 (0)