8000 fix: Example YAML schema to match Actions Docs by nschonni · Pull Request #46 · actions/github-script · GitHub
[go: up one dir, main page]

Skip to content

fix: Example YAML schema to match Actions Docs #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
  • Loading branch information
nschonni authored May 9, 2020
commit 97fd3f1973a3497c831a9e023225a4629716f9d3
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ By default, github-script will use the token provided to your workflow.

```yaml
on:
issues: {types: opened}
issues:
types: [opened]

jobs:
comment:
Expand All @@ -59,7 +60,8 @@ jobs:

```yaml
on:
issues: {types: opened}
issues:
types: [opened]

jobs:
apply-label:
Expand Down
0