We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e924d13 commit d13e05cCopy full SHA for d13e05c
action.yml
@@ -81,11 +81,13 @@ runs:
81
shell: powershell
82
run: |
83
try {
84
- $detected = (& pwsh -NoLogo -NoProfile -Command '$PSVersionTable.PSVersion.ToString()')
+ $detected = (pwsh -NoLogo -NoProfile -Command '$PSVersionTable.PSVersion.ToString()')
85
} catch {
86
$detected = $null
87
}
88
89
+ Write-Host "Detected PowerShell version: $detected"
90
+
91
if ($detected -eq $env:REQUESTED_VERSION) {
92
Write-Host "PowerShell $detected already installed. Skipping."
93
exit 0
0 commit comments