From 70d6d851470051ccf166f0c81df17a0998150cc2 Mon Sep 17 00:00:00 2001 From: Brian Bartholomew Date: Thu, 15 Oct 2020 23:28:49 -0700 Subject: [PATCH] example to echo out put from previous step fails (#528) --- .../actions/reference/workflow-commands-for-github-actions.md | 4 +++- 1 file changed, 3 insertions(+), 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 c864487be949..ca8001978556 100644 --- a/content/actions/reference/workflow-commands-for-github-actions.md +++ b/content/actions/reference/workflow-commands-for-github-actions.md @@ -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: