diff --git a/README.md b/README.md index 3e3fd17..7fe9f26 100644 --- a/README.md +++ b/README.md @@ -187,9 +187,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 }}' ```