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 {
152152 [String ]$NodeJsVersionStdOut = node -- no- deprecation -- no- warnings -- version |
153153 Join-String - Separator " `n "
154154 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' , ' ' ) ))
157157 ) {
158158 Throw
159159 }
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ Function Add-SecretMask {
2929 Write-GitHubActionsStdOutCommand - StdOutCommand ' add-mask' - Value $Value
3030 If ($WithChunks.IsPresent ) {
3131 $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 ) } |
3333 ForEach-Object - Process { Write-GitHubActionsStdOutCommand - StdOutCommand ' add-mask' - Value $_ }
3434 }
3535 }
You can’t perform that action at this time.
0 commit comments