From 3bc71b8dc69bec7f170a4c0a48d3b3bc6c292755 Mon Sep 17 00:00:00 2001 From: Brian Bartholomew Date: Wed, 14 Oct 2020 08:28:27 -0700 Subject: [PATCH 1/3] example to echo out put from previous step fails change - run: echo 'The selected color is' ${steps.random-color-generator.outputs.SELECTED_COLOR} to - run: echo "The selected color is ${{ steps.random-color-generator.outputs.SELECTED_COLOR }}" Other parts of the docs have it formatted this way. The error is a bash error: bad substitution. --- .../actions/reference/workflow-commands-for-github-actions.md | 2 +- 1 file changed, 1 insertion(+), 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..a8dec3c977c1 100644 --- a/content/actions/reference/workflow-commands-for-github-actions.md +++ b/content/actions/reference/workflow-commands-for-github-actions.md @@ -58,7 +58,7 @@ You can use the `set-output` command in your workflow to set the same value: 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 }}" ``` The following table shows which toolkit functions are available within a workflow: From ce72c297304d52b8817d35ce5fdbb654d9a14a85 Mon Sep 17 00:00:00 2001 From: Brian Bartholomew Date: Wed, 14 Oct 2020 08:43:43 -0700 Subject: [PATCH 2/3] add raw so double curly will be ignored --- .../actions/reference/workflow-commands-for-github-actions.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/content/actions/reference/workflow-commands-for-github-actions.md b/content/actions/reference/workflow-commands-for-github-actions.md index a8dec3c977c1..9e2b7ef28b99 100644 --- a/content/actions/reference/workflow-commands-for-github-actions.md +++ b/content/actions/reference/workflow-commands-for-github-actions.md @@ -53,6 +53,7 @@ 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' @@ -60,6 +61,8 @@ You can use the `set-output` command in your workflow to set the same value: - name: Get 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: From 842dae0f25b4abc6998db805636b570d41674a40 Mon Sep 17 00:00:00 2001 From: Brian Bartholomew Date: Wed, 14 Oct 2020 08:44:08 -0700 Subject: [PATCH 3/3] Update content/actions/reference/workflow-commands-for-github-actions.md --- .../actions/reference/workflow-commands-for-github-actions.md | 1 - 1 file changed, 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 9e2b7ef28b99..ca8001978556 100644 --- a/content/actions/reference/workflow-commands-for-github-actions.md +++ b/content/actions/reference/workflow-commands-for-github-actions.md @@ -63,7 +63,6 @@ You can use the `set-output` command in your workflow to set the same value: ``` {% endraw %} - The following table shows which toolkit functions are available within a workflow: | Toolkit function| Equivalent workflow command|