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.
Add-GitHubActionsPATH
1 parent 455afa3 commit b977c8eCopy full SHA for b977c8e
hugoalh.GitHubActionsToolkit/module/environment-variable.psm1
@@ -58,7 +58,7 @@ Function Add-PATH {
58
Try {
59
(Get-Content -LiteralPath $Env:GITHUB_PATH -Encoding 'UTF8NoBOM') + $Path |
60
Select-Object -Unique |
61
- Add-Content -LiteralPath $Env:GITHUB_PATH -Confirm:$False -Encoding 'UTF8NoBOM'
+ Set-Content -LiteralPath $Env:GITHUB_PATH -Confirm:$False -Encoding 'UTF8NoBOM'
62
}
63
Catch {
64
Write-Error -Message "Unable to add the GitHub Actions PATH: $_" -Category (($_)?.CategoryInfo.Category ?? 'OperationStopped')
0 commit comments