From 4f25acac8ae70bda72a84e87f86a1e5aab793eee Mon Sep 17 00:00:00 2001 From: Markus Teufelberger Date: Tue, 6 Jun 2023 09:16:31 +0200 Subject: [PATCH] ansible-lint: Use better workaround for truthy yaml keys Signed-off-by: Markus Teufelberger --- .github/workflows/ansible-lint.yml | 2 +- .github/workflows/ansible-test.yml | 2 +- .github/workflows/docs-pr.yml | 2 +- .github/workflows/docs-push.yml | 2 +- .github/workflows/ee.yml | 2 +- .github/workflows/reuse.yml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ansible-lint.yml b/.github/workflows/ansible-lint.yml index 34d2e60db..6602ada19 100644 --- a/.github/workflows/ansible-lint.yml +++ b/.github/workflows/ansible-lint.yml @@ -4,7 +4,7 @@ # SPDX-License-Identifier: GPL-3.0-or-later name: ansible-lint -on: # yamllint disable-line rule:truthy +"on": pull_request: branches: ["main", "stable-*"] jobs: diff --git a/.github/workflows/ansible-test.yml b/.github/workflows/ansible-test.yml index c9f64f30e..d25dc90c4 100644 --- a/.github/workflows/ansible-test.yml +++ b/.github/workflows/ansible-test.yml @@ -7,7 +7,7 @@ # https://github.com/marketplace/actions/ansible-test name: EOL CI -on: # yamllint disable-line rule:truthy +"on": # Run EOL CI against all pushes (direct commits, also merged PRs), Pull Requests push: branches: diff --git a/.github/workflows/docs-pr.yml b/.github/workflows/docs-pr.yml index 467f3f70c..d0b3271b0 100644 --- a/.github/workflows/docs-pr.yml +++ b/.github/workflows/docs-pr.yml @@ -7,7 +7,7 @@ name: Collection Docs concurrency: group: docs-pr-${{ github.head_ref }} cancel-in-progress: true -on: # yamllint disable-line rule:truthy +"on": pull_request_target: types: [opened, synchronize, reopened, closed] diff --git a/.github/workflows/docs-push.yml b/.github/workflows/docs-push.yml index 07fb5055e..24999fed7 100644 --- a/.github/workflows/docs-push.yml +++ b/.github/workflows/docs-push.yml @@ -7,7 +7,7 @@ name: Collection Docs concurrency: group: docs-push-${{ github.sha }} cancel-in-progress: true -on: # yamllint disable-line rule:truthy +"on": push: branches: - main diff --git a/.github/workflows/ee.yml b/.github/workflows/ee.yml index cc479c3aa..7c286d2a7 100644 --- a/.github/workflows/ee.yml +++ b/.github/workflows/ee.yml @@ -4,7 +4,7 @@ # SPDX-License-Identifier: GPL-3.0-or-later name: execution environment -on: # yamllint disable-line rule:truthy +"on": # Run CI against all pushes (direct commits, also merged PRs), Pull Requests push: branches: diff --git a/.github/workflows/reuse.yml b/.github/workflows/reuse.yml index 28ab619f8..723f3e819 100644 --- a/.github/workflows/reuse.yml +++ b/.github/workflows/reuse.yml @@ -5,7 +5,7 @@ name: Verify REUSE -on: # yamllint disable-line rule:truthy +"on": push: branches: [main] pull_request: