Skip to content

Commit 3d1de14

Browse files
authored
Update workflow-commands-for-github-actions.md
1 parent 1b9ee3b commit 3d1de14

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

content/actions/using-workflows/workflow-commands-for-github-actions.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ jobs:
429429
{% endraw %}
430430

431431
{% endpowershell %}
432+
432433
## Echoing command outputs
433434

434435
Enables or disables echoing of workflow commands. For example, if you use the `set-output` command in a workflow, it sets an output parameter but the workflow run's log does not show the command itself. If you enable command echoing, then the log shows the command, such as `::set-output name={name}::{value}`.
@@ -491,8 +492,6 @@ The example above prints the following lines to the log:
491492

492493
Only the second `set-output` and `echo` workflow commands are included in the log because command echoing was only enabled when they were run. Even though it is not always echoed, the output parameter is set in all cases.
493494

494-
495-
496495
## Sending values to the pre and post actions
497496

498497
You can use the `save-state` command to create environment variables for sharing with your workflow's `pre:` or `post:` actions. For example, you can create a file with the `pre:` action, pass the file location to the `main:` action, and then use the `post:` action to delete the file. Alternatively, you could create a file with the `main:` action, pass the file location to the `post:` action, and also use the `post:` action to delete the file.

0 commit comments

Comments
 (0)