mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
codespell.yml: add workflow (#8359)
This commit is contained in:
parent
c3f2c81b14
commit
8c559d581a
2 changed files with 26 additions and 0 deletions
1
.github/codespell-ignore
vendored
Normal file
1
.github/codespell-ignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
crate
|
25
.github/workflows/codespell.yml
vendored
Normal file
25
.github/workflows/codespell.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
name: Codespell
|
||||
|
||||
on: ['pull_request']
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@v26.1
|
||||
with:
|
||||
# Ignore all other languages except English
|
||||
files_ignore: pages.*/*/*
|
||||
|
||||
- uses: codespell-project/actions-codespell@master
|
||||
with:
|
||||
ignore_words_file: .github/codespell-ignore
|
||||
# Exit with 0 regardless of typos.
|
||||
only_warn: 1
|
||||
# Only check files in the PR
|
||||
path: ${{ steps.changed-files.outputs.all_changed_files }}
|
Loading…
Add table
Reference in a new issue