codespell.yml 998 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: Codespell
  2. on:
  3. pull_request:
  4. # Ignore all other languages except English
  5. paths-ignore:
  6. - 'pages.*/*/*'
  7. - 'contributing-guides/style-guide.*.md'
  8. - 'package-lock.json'
  9. jobs:
  10. build:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v4
  14. - name: Get changed files
  15. id: changed-files
  16. uses: tj-actions/changed-files@v45.0.4
  17. with:
  18. # Ignore all other languages except English
  19. files_ignore: |
  20. pages.*/*/*
  21. contributing-guides/style-guide.*.md
  22. package-lock.json
  23. - uses: codespell-project/actions-codespell@v2
  24. with:
  25. ignore_words_file: .github/codespell-ignore
  26. # Exit with 0 regardless of typos.
  27. only_warn: 1
  28. # Skip non-English pages
  29. skip: ./pages.*/*/*.md,./contributing-guides/style-guide.*.md
  30. # Only check files in the PR
  31. path: ${{ steps.changed-files.outputs.all_changed_files }}