lint-yaml.yml 756 B

123456789101112131415161718192021222324252627282930
  1. ---
  2. name: 🐶 YAML check 🧪
  3. on:
  4. push:
  5. branches: '**'
  6. path: .github/workflows/*.yml
  7. pull_request:
  8. branches: '**'
  9. path: .github/workflows/*.yml
  10. workflow_dispatch:
  11. concurrency:
  12. group: ${{ github.workflow }}-${{ github.ref }}
  13. cancel-in-progress: true
  14. jobs:
  15. yamllint:
  16. name: yaml lint
  17. runs-on: ubuntu-latest
  18. steps:
  19. - uses: actions/checkout@v4
  20. - uses: haya14busa/action-cond@v1
  21. id: reporter
  22. with:
  23. cond: ${{ github.event_name == 'pull_request' }}
  24. - uses: reviewdog/action-yamllint@v1
  25. with:
  26. reporter: ${{ steps.reporter.outputs.value }}
  27. github_token: ${{ secrets.github_token }}
  28. yamllint_flags: '-d relaxed .github/'
  29. level: error