Skip to content

Commit fdd1546

Browse files
committed
use cspell action
1 parent c486eea commit fdd1546

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

.github/workflows/build_docs.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,12 @@ jobs:
2828
git config user.name github-actions[bot]
2929
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
3030
31-
- name: Install spellcheck dependencies
32-
run: |
33-
npm install -g cspell jq
34-
35-
- name: Run cspell and format results
36-
run: |
37-
cspell --config cspell.json "docs/**/*.md"
38-
39-
- name: Fail on errors
40-
run: |
41-
if [[ $? -ne 0 ]]; then
42-
echo "There are spelling errors in your code. Please fix them and try again."
43-
exit 1
44-
fi
31+
- name: Check spelling
32+
uses: streetsidesoftware/cspell-action@v7
33+
with:
34+
files: "docs/**/*.md"
35+
config: cspell.json
36+
strict: true
4537

4638
- name: Install uv and set the python version to ${{ env.python-version }}
4739
uses: astral-sh/setup-uv@v5

0 commit comments

Comments
 (0)