mirror of
https://github.com/actions/github-script.git
synced 2026-02-07 19:47:26 +00:00
Merge pull request #108 from Bullenj01/documentation-print-option-for-objects
Update README.md
This commit is contained in:
commit
1318dc37ba
1 changed files with 9 additions and 0 deletions
|
|
@ -71,6 +71,15 @@ in case you need to use a non-default token.
|
|||
|
||||
By default, github-script will use the token provided to your workflow.
|
||||
|
||||
### Print the available attributes of context:
|
||||
|
||||
```yaml
|
||||
- name: View context attributes
|
||||
uses: actions/github-script@0.9.0
|
||||
with:
|
||||
script: console.log(context)
|
||||
```
|
||||
|
||||
### Comment on an issue
|
||||
|
||||
```yaml
|
||||
|
|
|
|||
Loading…
Reference in a new issue