yaml.yml 462 B

1234567891011121314151617181920212223242526
  1. name: YAML Validation
  2. on:
  3. pull_request:
  4. paths:
  5. - '**.yml'
  6. - '**.yaml'
  7. push:
  8. paths:
  9. - '**.yml'
  10. - '**.yaml'
  11. permissions:
  12. contents: read # to fetch code (actions/checkout)
  13. jobs:
  14. validate-yaml:
  15. name: Validate YAML
  16. runs-on: ubuntu-24.04
  17. steps:
  18. - name: Checkout code
  19. uses: actions/checkout@v4
  20. - name: Run yamllint
  21. run: git ls-files --cached -z -- '*.y*ml' | xargs --null -- yamllint