You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hugoalh.GitHubActionsToolkit/module/environment-variable.psm1
+13-5Lines changed: 13 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,8 @@ Add PATH for the current step and/or all of the subsequent steps in the current
15
15
Absolute paths.
16
16
.PARAMETERScope
17
17
Scope of the PATHs.
18
+
.PARAMETEROptimize
19
+
Whether to have an optimize operation by replace exist command instead of add command directly.
18
20
.OUTPUTS
19
21
[Void]
20
22
#>
@@ -23,7 +25,8 @@ Function Add-PATH {
23
25
[OutputType([Void])]
24
26
Param (
25
27
[Parameter(Mandatory=$True,Position=0,ValueFromPipeline=$True,ValueFromPipelineByPropertyName=$True)][ValidateScript({ [System.IO.Path]::IsPathFullyQualified($_) }, ErrorMessage ='`{0}` is not a valid absolute path!')][Alias('Paths')][String[]]$Path,
0 commit comments