summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguotong ma <[email protected]>2023-12-26 21:25:15 +0800
committerMeco Man <[email protected]>2023-12-26 22:34:23 +0800
commit6e02914c2b5bac2f6b948a5ba8b71ad6cf63319d (patch)
tree77a4c61c1111ccf0564efc5621b568ca59c44058
parent76acc4146b2c178d74b592385772271782391f83 (diff)
[ci][spell_check]change check path
-rw-r--r--.github/actions/spelling/only.txt1
-rw-r--r--.github/workflows/spell_check.yml15
2 files changed, 7 insertions, 9 deletions
diff --git a/.github/actions/spelling/only.txt b/.github/actions/spelling/only.txt
new file mode 100644
index 0000000000..024b8d4fdc
--- /dev/null
+++ b/.github/actions/spelling/only.txt
@@ -0,0 +1 @@
+^documentation/.*
diff --git a/.github/workflows/spell_check.yml b/.github/workflows/spell_check.yml
index 14dc1e3953..af0942c278 100644
--- a/.github/workflows/spell_check.yml
+++ b/.github/workflows/spell_check.yml
@@ -3,20 +3,19 @@ name: Check Spelling
on:
push:
branches:
- - master
+ - master
+ paths:
+ - 'documentation/**'
pull_request:
branches:
- - master
-
+ - 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