mirror of
https://github.com/actions/github-script.git
synced 2026-02-07 19:47:26 +00:00
fix: Example YAML schema to match Actions Docs
Both ways should be valid, but the regular nested YAML keys seems to be the format of the regular GitHub Actions docs
This commit is contained in:
parent
648bc46b8a
commit
97fd3f1973
1 changed files with 4 additions and 2 deletions
|
|
@ -37,7 +37,8 @@ By default, github-script will use the token provided to your workflow.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
on:
|
on:
|
||||||
issues: {types: opened}
|
issues:
|
||||||
|
types: [opened]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
comment:
|
comment:
|
||||||
|
|
@ -59,7 +60,8 @@ jobs:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
on:
|
on:
|
||||||
issues: {types: opened}
|
issues:
|
||||||
|
types: [opened]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
apply-label:
|
apply-label:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue