Skip to content

Commit 8c6d8ca

Browse files
Add installation progress messages for PowerShell on Linux
1 parent 7b1ab57 commit 8c6d8ca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ runs:
7272
URL="https://github.com/PowerShell/PowerShell/releases/download/v${REQUESTED_VERSION}/${DEB_NAME}"
7373
echo "Downloading from: $URL"
7474
wget -q "$URL" -O "$DEB_NAME"
75+
echo "Starting installation of PowerShell [$REQUESTED_VERSION)]..."
7576
sudo dpkg -i "$DEB_NAME" || sudo apt-get -f install -y
77+
echo "Installation complete. PowerShell [$REQUESTED_VERSION] is now available."
7678
elif command -v rpm >/dev/null; then
7779
# RHEL/Fedora/CentOS based
7880
echo "Detected RHEL/Fedora/CentOS based system..."
@@ -86,11 +88,14 @@ runs:
8688
URL="https://github.com/PowerShell/PowerShell/releases/download/v${REQUESTED_VERSION}/${RPM_NAME}"
8789
echo "Downloading from: $URL"
8890
wget -q "$URL" -O "$RPM_NAME"
91+
echo "Starting installation of PowerShell [$REQUESTED_VERSION)]..."
8992
sudo rpm -i "$RPM_NAME" || sudo yum install -y "$RPM_NAME"
93+
echo "Installation complete. PowerShell [$REQUESTED_VERSION] is now available."
9094
else
9195
echo "Unsupported Linux distribution. Cannot determine package format."
9296
exit 1
9397
fi
98+
echo "PowerShell [$REQUESTED_VERSION] installed successfully."
9499
95100
- name: Install PowerShell (macOS)
96101
if: runner.os == 'macOS'

0 commit comments

Comments
 (0)