mirror of
https://github.com/actions/github-script.git
synced 2026-02-08 03:57:27 +00:00
Merge pull request #45 from tevoinea/patch-1
Add example on how to get the step result
This commit is contained in:
commit
6f0504cb03
1 changed files with 4 additions and 0 deletions
|
|
@ -187,9 +187,13 @@ output of a github-script step. For some workflows, string encoding is preferred
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: actions/github-script@0.9.0
|
- uses: actions/github-script@0.9.0
|
||||||
|
id: my-script
|
||||||
with:
|
with:
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||||
result-encoding: string
|
result-encoding: string
|
||||||
script: |
|
script: |
|
||||||
return "I will be string (not JSON) encoded!"
|
return "I will be string (not JSON) encoded!"
|
||||||
|
|
||||||
|
- name: Prints result
|
||||||
|
run: cat '${{ steps.my-script.outputs.result }}'
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue