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 b977c8e commit 4c34ca9Copy full SHA for 4c34ca9
hugoalh.GitHubActionsToolkit/module/environment-variable.psm1
@@ -57,6 +57,7 @@ Function Add-PATH {
57
If (($Scope -band ([GitHubActionsEnvironmentVariableScopes]::Subsequent)) -ieq ([GitHubActionsEnvironmentVariableScopes]::Subsequent)) {
58
Try {
59
(Get-Content -LiteralPath $Env:GITHUB_PATH -Encoding 'UTF8NoBOM') + $Path |
60
+ Where-Object -FilterScript { $_.Length -gt 0 } |
61
Select-Object -Unique |
62
Set-Content -LiteralPath $Env:GITHUB_PATH -Confirm:$False -Encoding 'UTF8NoBOM'
63
}
0 commit comments