2022-09-18 22:24:26 +01:00
|
|
|
name: Codespell
|
|
|
|
|
2023-11-16 19:37:37 +00:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
# Ignore all other languages except English
|
|
|
|
paths-ignore:
|
|
|
|
- 'pages.*/*/*'
|
|
|
|
- 'contributing-guides/style-guide.*.md'
|
|
|
|
- 'package-lock.json'
|
2022-09-18 22:24:26 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-09-05 15:29:38 +01:00
|
|
|
- uses: actions/checkout@v4
|
2022-10-30 10:50:00 +00:00
|
|
|
|
2023-10-19 16:59:55 +01:00
|
|
|
- name: Get changed files
|
|
|
|
id: changed-files
|
2024-02-01 13:17:05 +00:00
|
|
|
uses: tj-actions/changed-files@v42.0.2
|
2023-10-19 16:59:55 +01:00
|
|
|
with:
|
|
|
|
# Ignore all other languages except English
|
|
|
|
files_ignore: |
|
|
|
|
pages.*/*/*
|
2023-11-16 19:37:37 +00:00
|
|
|
contributing-guides/style-guide.*.md
|
2023-10-19 16:59:55 +01:00
|
|
|
package-lock.json
|
|
|
|
|
2023-09-12 16:58:12 +01:00
|
|
|
- uses: codespell-project/actions-codespell@v2
|
2022-09-18 22:24:26 +01:00
|
|
|
with:
|
|
|
|
ignore_words_file: .github/codespell-ignore
|
|
|
|
# Exit with 0 regardless of typos.
|
2022-10-30 10:50:00 +00:00
|
|
|
only_warn: 1
|
2023-11-10 03:38:54 +00:00
|
|
|
# Skip non-English pages
|
2023-11-16 03:20:51 +00:00
|
|
|
skip: ./pages.*/*/*.md,./contributing-guides/style-guide.*.md
|
2023-10-19 16:59:55 +01:00
|
|
|
# Only check files in the PR
|
|
|
|
path: ${{ steps.changed-files.outputs.all_changed_files }}
|