codespell.yml 681 B

123456789101112131415161718192021222324252627
  1. name: Codespell
  2. on: ['pull_request']
  3. jobs:
  4. build:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - uses: actions/checkout@v3
  8. - name: Get changed files
  9. id: changed-files
  10. uses: tj-actions/changed-files@v26.1
  11. with:
  12. # Ignore all other languages except English
  13. files_ignore: |
  14. pages.*/*/*
  15. package-lock.json
  16. - uses: codespell-project/actions-codespell@master
  17. with:
  18. ignore_words_file: .github/codespell-ignore
  19. # Exit with 0 regardless of typos.
  20. only_warn: 1
  21. # Only check files in the PR
  22. path: ${{ steps.changed-files.outputs.all_changed_files }}