Skip to content

Commit e0d9ff2

Browse files
committed
20220911C
1 parent af6407d commit e0d9ff2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

hugoalh.GitHubActionsToolkit/module/problem-matcher.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Function Add-ProblemMatcher {
2626
[Parameter(Mandatory = $True, ParameterSetName = 'LiteralPath', ValueFromPipeline = $True, ValueFromPipelineByPropertyName = $True)][ValidatePattern('^.+$', ErrorMessage = 'Parameter `LiteralPath` must be in single line string!')][Alias('LiteralFile', 'LiteralFiles', 'LiteralPaths', 'LP', 'PSPath', 'PSPaths')][String[]]$LiteralPath
2727
)
2828
Process {
29-
($PSCmdlet.ParameterSetName -ieq 'LiteralPath') ? $LiteralPath : [String[]](Resolve-Path -Path $Path) |
29+
(($PSCmdlet.ParameterSetName -ieq 'LiteralPath') ? $LiteralPath : [String[]](Resolve-Path -Path $Path)) |
3030
ForEach-Object -Process { Write-GitHubActionsCommand -Command 'add-matcher' -Value ($_ -ireplace '^\.[\\/]', '' -ireplace '\\', '/') }
3131
}
3232
}

hugoalh.GitHubActionsToolkit/module/tool-cache.psm1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,7 @@ Function Find-ToolCache {
143143
$InputObject.Architecture = $Architecture
144144
}
145145
$ResultRaw = Invoke-GitHubActionsNodeJsWrapper -Path "tool-cache\find$($IsFindAll ? '-all-versions' : '').js" -InputObject ([PSCustomObject]$InputObject)
146-
$IsFindAll ? ${ResultRaw}?.Paths : ${ResultRaw}?.Path |
147-
Write-Output
146+
Write-Output -InputObject ($IsFindAll ? ${ResultRaw}?.Paths : ${ResultRaw}?.Path)
148147
}
149148
}
150149
<#

0 commit comments

Comments
 (0)