8000 Update README.md · deep-soft/github-script@b91d578 · GitHub
[go: up one dir, main page]

Skip to content

Commit b91d578

Browse files
authored
Update README.md
Add example of using console.log to display attributes of object context
1 parent a52e7f4 commit b91d578

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@ See [development.md](/docs/development.md).
3333

3434
## Reading step results
3535

36+
Print the available attributes of context:
37+
38+
```yaml
39+
- name: View context attributes
40+
uses: actions/github-script@0.9.0
41+
with:
42+
script: console.log(context)
43+
```
44+
3645
The return value of the script will be in the step's outputs under the
3746
"result" key.
3847

0 commit comments

Comments
 (0)
0