File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
hugoalh.GitHubActionsToolkit/module Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -152,8 +152,8 @@ Function Test-NodeJsEnvironment {
152
152
[String ]$NodeJsVersionStdOut = node -- no- deprecation -- no- warnings -- version |
153
153
Join-String - Separator " `n "
154
154
If (
155
- $NodeJsVersionStdOut -inotmatch $SemVerRegEx -or
156
- $NodeJsMinimumVersion -igt [SemVer ]::Parse(($Matches [0 ] -ireplace ' ^v' , ' ' ))
155
+ ( $NodeJsVersionStdOut -inotmatch $SemVerRegEx ) -or
156
+ ( $NodeJsMinimumVersion -igt [SemVer ]::Parse(($Matches [0 ] -ireplace ' ^v' , ' ' ) ))
157
157
) {
158
158
Throw
159
159
}
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ Function Add-SecretMask {
29
29
Write-GitHubActionsStdOutCommand - StdOutCommand ' add-mask' - Value $Value
30
30
If ($WithChunks.IsPresent ) {
31
31
$Value - isplit ' [\b\n\r\s\t -/:-@\[-`{-~]+' |
32
- Where-Object - FilterScript { $_.Length -ige 4 -and $_ -ine $Value } |
32
+ Where-Object - FilterScript { ( $_.Length -ige 4 ) -and ( $_ -ine $Value ) } |
33
33
ForEach-Object - Process { Write-GitHubActionsStdOutCommand - StdOutCommand ' add-mask' - Value $_ }
34
34
}
35
35
}
You can’t perform that action at this time.
0 commit comments