We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53622fc commit b943841Copy full SHA for b943841
hugoalh.GitHubActionsToolkit/module/artifact.psm1
@@ -56,7 +56,11 @@ Function Export-Artifact {
56
}
57
'Path' {
58
ForEach ($ItemPath In $Path) {
59
- $PathsProceed += [String[]](Resolve-Path -Path ([System.IO.Path]::IsPathRooted($ItemPath) ? $ItemPath : (Join-Path -Path $BaseRoot -ChildPath $ItemPath)) -ErrorAction 'SilentlyContinue')
+ Try {
60
+ $PathsProceed += Resolve-Path -Path ([System.IO.Path]::IsPathRooted($ItemPath) ? $ItemPath : (Join-Path -Path $BaseRoot -ChildPath $ItemPath))
61
+ } Catch {
62
+ Write-Error -Message "``$ItemPath`` is not an exist and resolvable path!" -Category 'SyntaxError'
63
+ }
64
65
66
0 commit comments