Skip to content

Fix missing echo call for powershell #38663

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -600,7 +600,7 @@ steps:
> steps:
> - shell: powershell
> run: |
> "mypath" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
> echo "mypath" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
> ```
>
> PowerShell Core versions 6 and higher (`shell: pwsh`) use UTF-8 by default. For example:
@@ -640,7 +640,7 @@ echo "{environment_variable_name}={value}" >> "$GITHUB_ENV"
* Using PowerShell version 5.1 and below:

```powershell copy
"{environment_variable_name}={value}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "{environment_variable_name}={value}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
```

{% endpowershell %}
@@ -951,7 +951,7 @@ echo "$HOME/.local/bin" >> "$GITHUB_PATH"
This example demonstrates how to add the user `$env:HOMEPATH/.local/bin` directory to `PATH`:

```powershell copy
"$env:HOMEPATH/.local/bin" | Out-File -FilePath "$env:GITHUB_PATH" -Append
echo "$env:HOMEPATH/.local/bin" | Out-File -FilePath "$env:GITHUB_PATH" -Append
```

{% endpowershell %}
Loading