Files
tldr/.github/workflows/codespell.yml
Sebastiaan Speck 2547b5a46c CI/codespell: skip non-English pages (#11515)
* codespell: skip non-English pages

* CI/codespell: add non-English contributing-guides to skip
2023-11-16 08:50:51 +05:30

30 lines
786 B
YAML

name: Codespell
on: ['pull_request']
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v40.0.2
with:
# Ignore all other languages except English
files_ignore: |
pages.*/*/*
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 }}