Browse Source

GHA: minor improvements to spellcheck

Closes #10640
andy5995 1 year ago
parent
commit
ab456e4e50
1 changed files with 9 additions and 6 deletions
  1. 9 6
      .github/workflows/spellcheck.yml

+ 9 - 6
.github/workflows/spellcheck.yml

@@ -11,7 +11,9 @@ on:
     - '**.md'
     - '**.3'
     - '**.1'
-    - '.github/**'
+    - '**/spellcheck.yml'
+    - '**/spellcheck.yaml'
+    - '**/wordlist.txt'
   pull_request:
     branches:
     - master
@@ -19,7 +21,9 @@ on:
     - '**.md'
     - '**.3'
     - '**.1'
-    - '.github/**'
+    - '**/spellcheck.yml'
+    - '**/spellcheck.yaml'
+    - '**/wordlist.txt'
 
 permissions: {}
 
@@ -44,8 +48,7 @@ jobs:
     - name: setup the custom wordlist
       run: grep -v '^#' .github/scripts/spellcheck.words >  wordlist.txt
 
-    - name: setup the spellcheck config
-      run: cp .github/scripts/spellcheck.yaml .
-
     - name: Check Spelling
-      uses: UnicornGlobal/spellcheck-github-actions@master
+      uses: rojopolis/spellcheck-github-actions@v0
+      with:
+        config_path: .github/scripts/spellcheck.yaml