From ec140bf55d47cd3b6341b09af9aab62ebf551181 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Thu, 11 Jan 2024 12:15:46 +0100 Subject: [PATCH] Update validate_yamllint.yml --- .github/workflows/validate_yamllint.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/validate_yamllint.yml b/.github/workflows/validate_yamllint.yml index 3e8fa58..499c8bc 100644 --- a/.github/workflows/validate_yamllint.yml +++ b/.github/workflows/validate_yamllint.yml @@ -20,7 +20,15 @@ jobs: files: '**/*.y*ml' separator: "," + #- name: Validate YAML + # if: steps.changed-files.outputs.any_changed == 'true' + # run: | + # yamllint -c ./.rules/yamllint.yml -f github -s ${{ steps.changed-files.outputs.all_changed_files }} + - name: Validate YAML if: steps.changed-files.outputs.any_changed == 'true' run: | - yamllint -c ./.rules/yamllint.yml -f github -s ${{ steps.changed-files.outputs.all_changed_files }} + IFS=',' read -ra FILES <<< "${{ steps.changed-files.outputs.all_changed_files }}" + for file in "${FILES[@]}"; do + yamllint -c "./.rules/yamllint.yml" "$file" + done