mirror of
https://github.com/actions/github-script.git
synced 2026-02-08 03:57:27 +00:00
Update README.md
Add example of using console.log to display attributes of object context
This commit is contained in:
parent
a52e7f4cf4
commit
b91d578158
1 changed files with 9 additions and 0 deletions
|
|
@ -33,6 +33,15 @@ See [development.md](/docs/development.md).
|
||||||
|
|
||||||
## Reading step results
|
## Reading step results
|
||||||
|
|
||||||
|
Print the available attributes of context:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- name: View context attributes
|
||||||
|
uses: actions/github-script@0.9.0
|
||||||
|
with:
|
||||||
|
script: console.log(context)
|
||||||
|
```
|
||||||
|
|
||||||
The return value of the script will be in the step's outputs under the
|
The return value of the script will be in the step's outputs under the
|
||||||
"result" key.
|
"result" key.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue