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