You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-4Lines changed: 19 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,11 @@
1
1
# Install-PowerShell
2
2
3
-
A cross‑platform GitHub Action that installs a specific **PowerShell Core** version—or the latest stable release—on any GitHub‑hosted runner
3
+
A cross‑platform GitHub Action that installs a specific **PowerShell Core** version—or the latest stable or preview release—on any GitHub‑hosted runner
4
4
(Linux, macOS, or Windows). The action automatically skips installation when the requested version is already present.
| `Version` | `false` | `latest` | Desired PowerShell Core version (e.g. `7.4.1`). Use `latest` to install the newest stable release. |
46
+
| `Version` | `false` | `latest` | Desired PowerShell Core version (e.g. `7.4.1`, `7.6.0-preview.1`). Use `latest` to install the newest stable release, or the newest preview release when `Preview` is `true`. |
47
+
| `Preview` | `false` | `false` | Install PowerShell preview build instead of stable. When `true` and `Version` is `latest`, installs the latest preview release. |
33
48
34
49
## Secrets
35
50
@@ -43,7 +58,7 @@ This action does **not** generate any outputs.
43
58
44
59
* **Version resolution**
45
60
If `Version` is set to `latest` (case‑insensitive), the action queries the GitHub API for the newest stable release tag in the
46
-
`PowerShell/PowerShell`repository and substitutes that version.
61
+
`PowerShell/PowerShell`repository and substitutes that version. When `Preview` is `true`, it queries for the latest preview release instead.
47
62
48
63
* **Skip logic**
49
64
Before installing, the action checks the current runner to see whether the requested version is already available
0 commit comments