From 8c559d581ac4372943cfacfff51fda2785bb5e6c Mon Sep 17 00:00:00 2001 From: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> Date: Sun, 18 Sep 2022 21:24:26 +0000 Subject: [PATCH] codespell.yml: add workflow (#8359) --- .github/codespell-ignore | 1 + .github/workflows/codespell.yml | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .github/codespell-ignore create mode 100644 .github/workflows/codespell.yml diff --git a/.github/codespell-ignore b/.github/codespell-ignore new file mode 100644 index 000000000..9ac17d57f --- /dev/null +++ b/.github/codespell-ignore @@ -0,0 +1 @@ +crate diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 000000000..f9757bb62 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -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 }}