Update validate_yamllint.yml

This commit is contained in:
Edward Firmo
2024-01-11 12:15:46 +01:00
parent a1e50237fb
commit ec140bf55d

View File

@@ -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