2022-09-18 22:24:26 +01:00
|
|
|
name: Codespell
|
|
|
|
|
|
|
|
on: ['pull_request']
|
|
|
|
|
|
|
|
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
|
|
|
|
uses: tj-actions/changed-files@v39.0.0
|
|
|
|
with:
|
|
|
|
# Ignore all other languages except English
|
|
|
|
files_ignore: |
|
|
|
|
pages.*/*/*
|
|
|
|
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-10-19 16:59:55 +01:00
|
|
|
# Only check files in the PR
|
|
|
|
path: ${{ steps.changed-files.outputs.all_changed_files }}
|