[ci][spell_check]change check path

This commit is contained in:
guotong ma 2023-12-26 21:25:15 +08:00 committed by Meco Man
parent 76acc4146b
commit 6e02914c2b
2 changed files with 7 additions and 9 deletions

1
.github/actions/spelling/only.txt vendored Normal file
View File

@ -0,0 +1 @@
^documentation/.*

View File

@ -4,19 +4,18 @@ on:
push:
branches:
- master
paths:
- 'documentation/**'
pull_request:
branches:
- master
paths:
- 'documentation/**'
jobs:
spelling:
name: Check Spelling
runs-on: ubuntu-latest
if: github.repository_owner == 'RT-Thread'
permissions:
contents: read
pull-requests: read
actions: read
steps:
- name: output ignore words info
run: |
@ -34,9 +33,7 @@ jobs:
cspell:software-terms/softwareTerms.txt
cspell:python/python.txt
cspell:cpp/cpp.txt
check_extra_dictionaries: ''
- name: output Success info
run: |
echo "✅ Check spelling success." >> $GITHUB_STEP_SUMMARY