8000 Merge pull request #45 from tevoinea/patch-1 · catterber/github-script@6f0504c · GitHub
[go: up one dir, main page]

Skip to content

Commit 6f0504c

Browse files
authored
Merge pull request actions#45 from tevoinea/patch-1
Add example on how to get the step result
2 parents d89db5b + f8e6050 commit 6f0504c

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
@@ -187,9 +187,13 @@ output of a github-script step. For some workflows, string encoding is preferred
187187

188188
```yaml
189189
- uses: actions/github-script@0.9.0
190+
id: my-script
190191
with:
191192
github-token: ${{secrets.GITHUB_TOKEN}}
192193
result-encoding: string
193194
script: |
194195
return "I will be string (not JSON) encoded!"
196+
197+
- name: Prints result
198+
run: cat '${{ steps.my-script.outputs.result }}'
195199
```

0 commit comments

Comments
 (0)
0