spellcheck.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
  2. #
  3. # SPDX-License-Identifier: curl
  4. name: spell
  5. on:
  6. push:
  7. branches:
  8. - master
  9. paths:
  10. - '**.md'
  11. - '**/spellcheck.yml'
  12. - '**/spellcheck.yaml'
  13. - '.github/scripts/*'
  14. pull_request:
  15. branches:
  16. - master
  17. paths:
  18. - '**.md'
  19. - '**/spellcheck.yml'
  20. - '**/spellcheck.yaml'
  21. - '.github/scripts/*'
  22. permissions: {}
  23. jobs:
  24. check:
  25. runs-on: ubuntu-latest
  26. steps:
  27. - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
  28. - name: trim all man page *.md files
  29. run: find docs -name "*.md" ! -name "_*" | xargs -n1 ./.github/scripts/cleancmd.pl
  30. - name: trim libcurl man page *.md files
  31. run: find docs/libcurl -name "curl_*.md" -o -name "libcurl*.md" | xargs -n1 ./.github/scripts/cleanspell.pl
  32. - name: trim libcurl option man page *.md files
  33. run: find docs/libcurl/opts -name "CURL*.md" | xargs -n1 ./.github/scripts/cleanspell.pl
  34. - name: trim cmdline docs markdown _*.md files
  35. run: find docs/cmdline-opts -name "_*.md" | xargs -n1 ./.github/scripts/cleancmd.pl --no-header
  36. - name: setup the custom wordlist
  37. run: grep -v '^#' .github/scripts/spellcheck.words > wordlist.txt
  38. - name: Check Spelling
  39. uses: rojopolis/spellcheck-github-actions@dbd2f1da869c05ad874fffeb6fe1ed50cd1a6e98 # v0
  40. with:
  41. config_path: .github/scripts/spellcheck.yaml