Skip to content

Commit

Permalink
Ignore yamllint warning about truthy value "on"
Browse files Browse the repository at this point in the history
GitHub actions expects "on" as a key, even though in YAML, "on" is a
special / truthy value. It's safe to ignore this since GitHub Actions
parses it correctly.

Add an explicit ignore for the next line only
Alternate approach to #838
  • Loading branch information
wyardley committed Sep 6, 2024
1 parent 78c09c9 commit 94d58cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions moduleroot/.github/workflows/ci.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

name: CI

# yamllint disable-line rule:truthy
on:
pull_request: {}
push:
Expand Down
1 change: 1 addition & 0 deletions moduleroot/.github/workflows/labeler.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

name: "Pull Request Labeler"

# yamllint disable-line rule:truthy
on:
pull_request_target: {}

Expand Down
1 change: 1 addition & 0 deletions moduleroot/.github/workflows/release.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

name: Release

# yamllint disable-line rule:truthy
on:
push:
tags:
Expand Down

0 comments on commit 94d58cf

Please sign in to comment.