forked from open-telemetry/opentelemetry.io
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 942 Bytes
/
check-spelling.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Spelling
on:
pull_request:
jobs:
spelling-check:
name: SPELLING check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: streetsidesoftware/cspell-action@v2
with:
# Files should be consistent with check:spelling files
files: |
content/**/*.md
layouts/**/*.md
data/**/*
!data/registry/**/*
config: .vscode/cspell.json
dict-check:
name: CSPELL:IGNORE check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm run fix:dict
- name: Any changed files?
run: |
CHANGES=`git status --porcelain`
if [[ $CHANGES ]]; then
echo "Locally run `npm run fix:dict` and commit the changes:"
echo "$CHANGES"
exit 1
else
echo "All page-local dictionaries are well formatted."
fi