diff --git a/.github/workflows/spellcheck.yaml b/.github/workflows/spellcheck.yaml new file mode 100644 index 0000000000..317c9a4e8f --- /dev/null +++ b/.github/workflows/spellcheck.yaml @@ -0,0 +1,30 @@ +name: Spelling check + +on: ["pull_request"] + +permissions: {} + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + check-spelling: + name: check-spelling + runs-on: ubuntu-24.04 + steps: + - name: Checkout code + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + fetch-depth: 0 + persist-credentials: false + + - name: Check Spelling + uses: streetsidesoftware/cspell-action@9cd41bb518a24fefdafd9880cbab8f0ceba04d28 # 8.3.0 + with: + files: | + **/*.md + **/*.rst + **/*.txt + incremental_files_only: true + config: ".cspell.yaml"