Commit 8688e56
committed
fix: Always verify via subprocess on Windows and prepend install dir to GITHUB_PATH
After MSI install on Windows, the running shell may still resolve the
pre-installed pwsh from PATH. Two fixes:
1. action.yml: Append the install directory to GITHUB_PATH so that
subsequent 'shell: pwsh' steps in the consumer's workflow resolve to
the version we just installed (critical for preview builds whose
7-preview dir is not on the runner's default PATH, but also defensive
for stable upgrades).
2. Action-Test.yml: Verification step now always launches pwsh from the
known install directory on Windows (both stable and prerelease),
instead of relying on $PSVersionTable from the current shell.1 parent eb32a65 commit 8688e56
2 files changed
Lines changed: 24 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
78 | 79 | | |
79 | | - | |
| 80 | + | |
80 | 81 | | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| 86 | + | |
84 | 87 | | |
85 | 88 | | |
86 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
0 commit comments