Skip to content

Commit f8e6050

Browse files
authored
Add example on how to get the step result
1 parent 648bc46 commit f8e6050

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,13 @@ output of a github-script step. For some workflows, string encoding is preferred
150150

151151
```yaml
152152
- uses: actions/github-script@0.9.0
153+
id: my-script
153154
with:
154155
github-token: ${{secrets.GITHUB_TOKEN}}
155156
result-encoding: string
156157
script: |
157158
return "I will be string (not JSON) encoded!"
159+
160+
- name: Prints result
161+
run: cat '${{ steps.my-script.outputs.result }}'
158162
```

0 commit comments

Comments
 (0)