spell_check.yml 984 B

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