From c5e1a94791962eb810b73a240bd1416561e73788 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Thu, 8 Oct 2020 10:25:07 -0700 Subject: [PATCH] Update powershell example using Out-File. The default for Out-File is to overwrite the file. This can cause confusion if you use the given example multiple times in the same step, as all previous entries will be lost. Use `-Append` to avoid this. --- .../actions/reference/workflow-commands-for-github-actions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/actions/reference/workflow-commands-for-github-actions.md b/content/actions/reference/workflow-commands-for-github-actions.md index e7c98d0f1155..4a618a1bf22e 100644 --- a/content/actions/reference/workflow-commands-for-github-actions.md +++ b/content/actions/reference/workflow-commands-for-github-actions.md @@ -234,7 +234,7 @@ During the execution of a workflow, the runner generates temporary files that ca ``` steps: - - run: echo "mypath" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 + - run: echo "mypath" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8 ``` {% endwarning %}