Update validate_yamllint.yml

This commit is contained in:
Edward Firmo
2024-01-11 12:23:59 +01:00
parent d1328cde66
commit 82dd4cb833

View File

@@ -21,16 +21,12 @@ 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: |
IFS=',' read -ra FILES <<< "${{ steps.changed-files.outputs.all_changed_files }}"
for file in "${FILES[@]}"; do
echo "Validating $file"
echo "::group::Validating $file"
yamllint -c "./.rules/yamllint.yml" "$file"
echo "::endgroup::"
done