Skip to content

Commit

Permalink
example to echo out put from previous step fails (#528)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcbrian authored Oct 16, 2020
1 parent c8cb686 commit 70d6d85
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,15 @@ core.setOutput('SELECTED_COLOR', 'green');

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

{% raw %}
``` yaml
- name: Set selected color
run: echo '::set-output name=SELECTED_COLOR::green'
id: random-color-generator
- name: Get color
run: echo 'The selected color is' ${steps.random-color-generator.outputs.SELECTED_COLOR}
run: echo "The selected color is ${{ steps.random-color-generator.outputs.SELECTED_COLOR }}"
```
{% endraw %}
The following table shows which toolkit functions are available within a workflow:
Expand Down

0 comments on commit 70d6d85

Please sign in to comment.