Skip to content

Commit 7b1ab57

Browse files
Add installation progress messages for PowerShell on Linux and Windows
1 parent bce896e commit 7b1ab57

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,17 @@ runs:
144144
145145
URL="https://github.com/PowerShell/PowerShell/releases/download/v${REQUESTED_VERSION}/${PKG_NAME}"
146146
echo "Downloading from: $URL"
147+
148+
echo "Starting installation of PowerShell [$REQUESTED_VERSION]..."
149+
147150
if ! curl -sSL "$URL" -o "$PKG_NAME"; then
148151
echo "Error: Failed to download PowerShell package"
149152
exit 1
150153
fi
151154
sudo installer -pkg "$PKG_NAME" -target /
152155
156+
echo "Installation complete. PowerShell [$REQUESTED_VERSION] is now available."
157+
153158
- name: Install PowerShell (Windows)
154159
if: runner.os == 'Windows'
155160
shell: powershell
@@ -194,8 +199,13 @@ runs:
194199
$msi = "PowerShell-$($env:REQUESTED_VERSION)-win-x64.msi"
195200
$url = "https://github.com/PowerShell/PowerShell/releases/download/v$($env:REQUESTED_VERSION)/$msi"
196201
Write-Host "Downloading from: $url"
202+
203+
Write-Host "Starting installation of PowerShell [$($env:REQUESTED_VERSION)]..."
204+
197205
if (-not (Invoke-WebRequest -Uri $url -OutFile $msi -UseBasicParsing -PassThru)) {
198206
Write-Host "Error: Failed to download PowerShell package"
199207
exit 1
200208
}
201209
Start-Process msiexec.exe -ArgumentList '/i', $msi, '/quiet', '/norestart' -Wait
210+
211+
Write-Host "Installation complete. PowerShell [$($env:REQUESTED_VERSION)] is now available."

0 commit comments

Comments
 (0)