From a14af2f310c10f21f6673bc63dc44a4ee56d5e66 Mon Sep 17 00:00:00 2001 From: Phil Ewels Date: Tue, 23 Mar 2021 14:08:16 +0100 Subject: [PATCH] Find yml and yaml files for yaml linting --- nf_core/pipeline-template/.github/workflows/linting.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nf_core/pipeline-template/.github/workflows/linting.yml b/nf_core/pipeline-template/.github/workflows/linting.yml index 5b09090281..4570f43bda 100644 --- a/nf_core/pipeline-template/.github/workflows/linting.yml +++ b/nf_core/pipeline-template/.github/workflows/linting.yml @@ -57,7 +57,7 @@ jobs: - name: Install yaml-lint run: npm install -g yaml-lint - name: Run yaml-lint - run: yamllint $(find ${GITHUB_WORKSPACE} -type f -name "*.yml") + run: yamllint $(find ${GITHUB_WORKSPACE} -type f -name "*.yml" -o -name "*.yaml") # If the above check failed, post a comment on the PR explaining the failure - name: Post PR comment @@ -73,7 +73,7 @@ jobs: * Install `yaml-lint` * [Install `npm`](https://www.npmjs.com/get-npm) then [install `yaml-lint`](https://www.npmjs.com/package/yaml-lint) (`npm install -g yaml-lint`) * Fix the markdown errors - * Run the test locally: `yamllint $(find . -type f -name "*.yml")` + * Run the test locally: `yamllint $(find . -type f -name "*.yml" -o -name "*.yaml")` * Fix any reported errors in your YAML files Once you push these changes the test should pass, and you can hide this comment :+1: