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:
Nick Schonning 2020-05-09 13:09:30 -04:00 committed by GitHub
parent 648bc46b8a
commit 97fd3f1973
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: