spell_check.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: Check Spelling
  2. on:
  3. push:
  4. branches:
  5. - master
  6. paths:
  7. - 'documentation/**'
  8. pull_request:
  9. branches:
  10. - master
  11. paths:
  12. - 'documentation/**'
  13. jobs:
  14. spelling:
  15. name: Check Spelling
  16. runs-on: ubuntu-latest
  17. if: github.repository_owner == 'RT-Thread'
  18. steps:
  19. - name: output ignore words info
  20. run: |
  21. echo "> If any words shown as incorrect are spelled correctly, please add them to .github/actions/spelling/allow.txt." >> $GITHUB_STEP_SUMMARY
  22. - name: check spelling
  23. id: spelling
  24. uses: check-spelling/check-spelling@v0.0.20
  25. with:
  26. checkout: true
  27. check_file_names: 0
  28. only_check_changed_files: 1
  29. post_comment: 0
  30. extra_dictionaries:
  31. cspell:en_US/src/en_US.txt
  32. cspell:software-terms/softwareTerms.txt
  33. cspell:python/python.txt
  34. cspell:cpp/cpp.txt
  35. check_extra_dictionaries: ''
  36. - name: output Success info
  37. run: |
  38. echo "✅ Check spelling success." >> $GITHUB_STEP_SUMMARY