From 6479a7ffa6f3819c65dffd2bb4fcb48fdcbd3e26 Mon Sep 17 00:00:00 2001 From: Martin Lopes Date: Thu, 9 Sep 2021 16:09:29 +1000 Subject: [PATCH] Updated YAML syntax --- .../workflow-commands-for-github-actions.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/content/actions/reference/workflow-commands-for-github-actions.md b/content/actions/reference/workflow-commands-for-github-actions.md index 91d32bd493..c7d864fb37 100644 --- a/content/actions/reference/workflow-commands-for-github-actions.md +++ b/content/actions/reference/workflow-commands-for-github-actions.md @@ -225,16 +225,17 @@ To start workflow commands, pass the token that you used to stop workflow comman {% raw %} ```yaml -workflow-command-job: +jobs: + workflow-command-job: runs-on: ubuntu-latest steps: - - name: disable workflow commands - run: | - echo '::warning:: this is a warning' - echo "::stop-commands::`echo -n ${{ github.token }} | sha256sum | head -c 64`" - echo '::warning:: this will NOT be a warning' - echo "::`echo -n ${{ github.token }} | sha256sum | head -c 64`::" - echo '::warning:: this is a warning again' + - name: disable workflow commands + run: | + echo '::warning:: this is a warning' + echo "::stop-commands::`echo -n ${{ github.token }} | sha256sum | head -c 64`" + echo '::warning:: this will NOT be a warning' + echo "::`echo -n ${{ github.token }} | sha256sum | head -c 64`::" + echo '::warning:: this is a warning again' ``` {% endraw %}