-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
36 lines (31 loc) · 998 Bytes
/
codespell.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
name: Codespell
on:
pull_request:
# Ignore all other languages except English
paths-ignore:
- 'pages.*/*/*'
- 'contributing-guides/style-guide.*.md'
- 'package-lock.json'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get changed files
id: changed-files
uses: tj-actions/[email protected]
with:
# Ignore all other languages except English
files_ignore: |
pages.*/*/*
contributing-guides/style-guide.*.md
package-lock.json
- uses: codespell-project/actions-codespell@v2
with:
ignore_words_file: .github/codespell-ignore
# Exit with 0 regardless of typos.
only_warn: 1
# Skip non-English pages
skip: ./pages.*/*/*.md,./contributing-guides/style-guide.*.md
# Only check files in the PR
path: ${{ steps.changed-files.outputs.all_changed_files }}