From 94d58cf46d5d97b24af83d043e98ac376b2fdc1f Mon Sep 17 00:00:00 2001 From: William Yardley Date: Fri, 6 Sep 2024 15:40:10 -0700 Subject: [PATCH] Ignore yamllint warning about truthy value "on" 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 --- moduleroot/.github/workflows/ci.yml.erb | 1 + moduleroot/.github/workflows/labeler.yml.erb | 1 + moduleroot/.github/workflows/release.yml.erb | 1 + 3 files changed, 3 insertions(+) diff --git a/moduleroot/.github/workflows/ci.yml.erb b/moduleroot/.github/workflows/ci.yml.erb index 80e4ff49..82fac5a7 100644 --- a/moduleroot/.github/workflows/ci.yml.erb +++ b/moduleroot/.github/workflows/ci.yml.erb @@ -4,6 +4,7 @@ name: CI +# yamllint disable-line rule:truthy on: pull_request: {} push: diff --git a/moduleroot/.github/workflows/labeler.yml.erb b/moduleroot/.github/workflows/labeler.yml.erb index 66127cd0..73be88dc 100644 --- a/moduleroot/.github/workflows/labeler.yml.erb +++ b/moduleroot/.github/workflows/labeler.yml.erb @@ -4,6 +4,7 @@ name: "Pull Request Labeler" +# yamllint disable-line rule:truthy on: pull_request_target: {} diff --git a/moduleroot/.github/workflows/release.yml.erb b/moduleroot/.github/workflows/release.yml.erb index f0812357..f144ef4b 100644 --- a/moduleroot/.github/workflows/release.yml.erb +++ b/moduleroot/.github/workflows/release.yml.erb @@ -4,6 +4,7 @@ name: Release +# yamllint disable-line rule:truthy on: push: tags: