Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6f0504c

Browse filesBrowse 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
Copy full SHA for 6f0504c

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+4Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.