Merge pull request #45 from tevoinea/patch-1

Add example on how to get the step result
This commit is contained in:
Jonathan Clem 2020-05-18 12:48:21 -04:00 committed by GitHub
commit 6f0504cb03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 }}'
```