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: