v1.0.0
Description
This pull request introduces the Install-PowerShell
GitHub Action, simplifying installation of specific versions of PowerShell on GitHub runners.
Features:
- Cross‑platform installer – Runs on all GitHub‑hosted runners (Ubuntu, macOS, Windows). Detects the OS at runtime and executes the appropriate installation routine.
- Version selector – Installs either a specific PowerShell Core version (e.g. 7.4.1) or the latest stable release when Version: latest is supplied (default).
- Smart skip logic – Checks the currently installed PowerShell version and skips installation when the requested version is already present, saving time and CI minutes.
- Native package managers first
- Linux (Debian/Ubuntu): Uses APT, falling back to direct .deb download if the exact version isn’t in the repo.
- macOS: Prefers Homebrew Cask; falls back to the official .pkg installer (ARM64/x64 aware).
- Windows: Downloads the official MSI and installs silently with msiexec.
Metadata Updates:
- Action Metadata Update: Updated
action.yml
to reflect the new functionality, including a description, branding changes, and streamlined inputs. Removed unnecessary inputs likeDebug
andVerbose
.action.yml
Type of change
- 📖 [Docs]
- 🪲 [Fix]
- 🩹 [Patch]
-
⚠️ [Security fix] - 🚀 [Feature]
- 🌟 [Breaking change]
Checklist
- I have performed a self-review of my own code
- I have commented my code, particularly in hard-to-understand areas