Skip to content

Commit 4c34ca9

Browse files
committed
20231121A
1 parent b977c8e commit 4c34ca9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hugoalh.GitHubActionsToolkit/module/environment-variable.psm1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Function Add-PATH {
5757
If (($Scope -band ([GitHubActionsEnvironmentVariableScopes]::Subsequent)) -ieq ([GitHubActionsEnvironmentVariableScopes]::Subsequent)) {
5858
Try {
5959
(Get-Content -LiteralPath $Env:GITHUB_PATH -Encoding 'UTF8NoBOM') + $Path |
60+
Where-Object -FilterScript { $_.Length -gt 0 } |
6061
Select-Object -Unique |
6162
Set-Content -LiteralPath $Env:GITHUB_PATH -Confirm:$False -Encoding 'UTF8NoBOM'
6263
}

0 commit comments

Comments
 (0)