Skip to content

Merge branch 'master' of github.com:digitalearthafrica/config into io… #549

Merge branch 'master' of github.com:digitalearthafrica/config into io…

Merge branch 'master' of github.com:digitalearthafrica/config into io… #549

Workflow file for this run

name: Lint YAML files
on:
push:
paths:
- "products/**"
- .github/workflows/linting-yaml.yml
pull_request:
branches: [master]
paths:
- "products/**"
jobs:
yamllint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Check file naming
run: |
files=$(find products/*.yml | wc -l)
if [ $files -gt 0 ]; then echo "File found with .yml extension, please rename with .yaml" && exit 1; fi
- name: yaml-lint
run:
yamllint products/*.yaml