From 1f65ddc1bdf3b22019ba5028c7fe0aeb949a7aaf Mon Sep 17 00:00:00 2001 From: Eric Nemchik Date: Tue, 27 Jun 2023 17:32:59 +0000 Subject: [PATCH] feat(maintenance): Simplify and speed up yamllint Signed-off-by: GitHub --- .github/workflows/lint-yaml.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint-yaml.yml b/.github/workflows/lint-yaml.yml index 287f422dd..ad1040d91 100644 --- a/.github/workflows/lint-yaml.yml +++ b/.github/workflows/lint-yaml.yml @@ -17,10 +17,9 @@ jobs: - name: Run yamllint run: | - find "${GITHUB_WORKSPACE}" -name '*.yml' -exec \ - docker run --rm \ - -v "${GITHUB_WORKSPACE}":"${GITHUB_WORKSPACE}" \ - -w "${GITHUB_WORKSPACE}" \ + docker run --rm \ + -v "${GITHUB_WORKSPACE}":/yaml \ peterdavehello/yamllint \ - yamllint -c yamllint.yml \ - {} + + yamllint \ + -c "/yaml/yamllint.yml" \ + .