Skip to content

Commit 70d6d85

Browse files
authored
example to echo out put from previous step fails (#528)
1 parent c8cb686 commit 70d6d85

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

content/actions/reference/workflow-commands-for-github-actions.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,15 @@ core.setOutput('SELECTED_COLOR', 'green');
5353

5454
You can use the `set-output` command in your workflow to set the same value:
5555

56+
{% raw %}
5657
``` yaml
5758
- name: Set selected color
5859
run: echo '::set-output name=SELECTED_COLOR::green'
5960
id: random-color-generator
6061
- name: Get color
61-
run: echo 'The selected color is' ${steps.random-color-generator.outputs.SELECTED_COLOR}
62+
run: echo "The selected color is ${{ steps.random-color-generator.outputs.SELECTED_COLOR }}"
6263
```
64+
{% endraw %}
6365
6466
The following table shows which toolkit functions are available within a workflow:
6567

0 commit comments

Comments
 (0)