Skip to content

Commit 7963f24

Browse files
committed
Fix missing echo call for powershell
1 parent 272838a commit 7963f24

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ steps:
600600
> steps:
601601
> - shell: powershell
602602
> run: |
603-
> "mypath" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
603+
> echo "mypath" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
604604
> ```
605605
>
606606
> 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"
640640
* Using PowerShell version 5.1 and below:
641641

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

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

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

957957
{% endpowershell %}

0 commit comments

Comments
 (0)