psmodule/Install PowerShell
Install a specific version, or the latest stable version, of PowerShell Core on any GitHub runner (Linux, macOS, Windows). Skips the install if the requested version is already present.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| Version | PowerShell version to install (e.g. `7.4.1` or `7.4.0-preview.5`). Defaults to install the latest stable release. Prerelease versions are supported (e.g. `7.4.0-preview.5`, `7.5.0-rc.1`). | no | latest |
| Prerelease | Install a prerelease version of PowerShell. When `true` and `Version` is `latest`, installs the latest prerelease. Similar to the `-Prerelease` switch on `Install-PSResource`. | no | false |
| Token | Token used for GitHub API calls. Defaults to github.token. Set to an empty string for anonymous API access. | no | ${{ github.token }} |
| Host | GitHub host used by gh CLI for API calls. Use github.com for GitHub.com or your GHES hostname. | no | github.com |
Outputs
no outputs