Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 97fd3f1

Browse files
authored
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
1 parent 648bc46 commit 97fd3f1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ By default, github-script will use the token provided to your workflow.
3737

3838
```yaml
3939
on:
40-
issues: {types: opened}
40+
issues:
41+
types: [opened]
4142

4243
jobs:
4344
comment:
@@ -59,7 +60,8 @@ jobs:
5960
6061
```yaml
6162
on:
62-
issues: {types: opened}
63+
issues:
64+
types: [opened]
6365

6466
jobs:
6567
apply-label:

0 commit comments

Comments
 (0)