forked from infra/ansible
Only run yamllint ci on yamlfiles
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
This commit is contained in:
parent
bed0b6d28f
commit
ee431193b4
1 changed files with 3 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue