diff --git a/.codespellignore b/.codespellignore new file mode 100644 index 00000000000..72c95659779 --- /dev/null +++ b/.codespellignore @@ -0,0 +1 @@ +finsh diff --git a/.github/workflows/spell_check.yml b/.github/workflows/spell_check.yml new file mode 100644 index 00000000000..9d60529314a --- /dev/null +++ b/.github/workflows/spell_check.yml @@ -0,0 +1,25 @@ +name: Spell Check + +# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows +on: + push: + pull_request: + schedule: + # Run every Tuesday at 8 AM UTC to catch new misspelling detections resulting from dictionary updates. + - cron: "0 8 * * TUE" + workflow_dispatch: + repository_dispatch: + +jobs: + check: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Spell check + uses: codespell-project/actions-codespell@master + with: + ignore_words_file: .codespellignore + only_warn: 1