From f8e6050e29e2010e9d7f88bfbc11ce6c859de438 Mon Sep 17 00:00:00 2001 From: Teo Voinea <58236992+tevoinea@users.noreply.github.com> Date: Thu, 7 May 2020 18:19:02 -0700 Subject: [PATCH] Add example on how to get the step result --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 262fe40..f3dade3 100644 --- a/README.md +++ b/README.md @@ -150,9 +150,13 @@ output of a github-script step. For some workflows, string encoding is preferred ```yaml - uses: actions/github-script@0.9.0 + id: my-script with: github-token: ${{secrets.GITHUB_TOKEN}} result-encoding: string script: | return "I will be string (not JSON) encoded!" + +- name: Prints result + run: cat '${{ steps.my-script.outputs.result }}' ```