1
0
Fork 0
forked from infra/ansible

Only run yamllint ci on yamlfiles

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
This commit is contained in:
Ryan Lerch 2026-02-20 07:27:10 +10:00
commit ee431193b4

View file

@ -27,7 +27,9 @@ jobs:
if: steps.changed-files.outputs.any_changed == 'true'
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
yamllint "$file"
if [[ "$file" == *.yml || "$file" == *.yaml ]]; then
yamllint "$file"
fi
done
ansible-lint: