2022-09-18 22:24:26 +01:00
|
|
|
name: Codespell
|
|
|
|
|
|
|
|
on: ['pull_request']
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2022-10-30 10:50:00 +00:00
|
|
|
|
2022-09-18 22:24:26 +01:00
|
|
|
- name: Get changed files
|
|
|
|
id: changed-files
|
2023-08-01 08:16:57 +01:00
|
|
|
uses: tj-actions/changed-files@v37.5.1
|
2022-09-18 22:24:26 +01:00
|
|
|
with:
|
|
|
|
# Ignore all other languages except English
|
2022-10-30 10:50:00 +00:00
|
|
|
files_ignore: |
|
|
|
|
pages.*/*/*
|
|
|
|
package-lock.json
|
|
|
|
|
2022-09-18 22:24:26 +01:00
|
|
|
- uses: codespell-project/actions-codespell@master
|
|
|
|
with:
|
|
|
|
ignore_words_file: .github/codespell-ignore
|
|
|
|
# Exit with 0 regardless of typos.
|
2022-10-30 10:50:00 +00:00
|
|
|
only_warn: 1
|
2022-09-18 22:24:26 +01:00
|
|
|
# Only check files in the PR
|
2022-10-30 10:50:00 +00:00
|
|
|
path: ${{ steps.changed-files.outputs.all_changed_files }}
|