feat(docs): add CI spell checks in repo #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check Spelling | |
on: | |
push: | |
branches: | |
- "**" | |
tags-ignore: | |
- "**" | |
pull_request_target: | |
branches: | |
- "**" | |
types: | |
- opened | |
- reopened | |
- synchronize | |
issue_comment: | |
types: | |
- created | |
jobs: | |
spelling: | |
name: Check Spelling | |
permissions: | |
contents: read | |
pull-requests: read | |
actions: read | |
security-events: write | |
outputs: | |
followup: ${{ steps.spelling.outputs.followup }} | |
runs-on: ubuntu-latest | |
if: ${{ contains(github.event_name, 'pull_request') || github.event_name == 'push' }} | |
concurrency: | |
group: spelling-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: check-spelling | |
id: spelling | |
uses: check-spelling/check-spelling@main | |
with: | |
spellcheck_dir: pages | |
filters: pages/** | |
suppress_push_for_open_pull_request: ${{ github.actor != 'dependabot[bot]' && 1 }} | |
checkout: true | |
check_file_names: 1 | |
spell_check_this: check-spelling/spell-check-this@prerelease | |
post_comment: 0 | |
use_magic_file: 1 | |
report-timing: 1 | |
warnings: bad-regex,binary-file,deprecated-feature,large-file,limited-references,no-newline-at-eof,noisy-file,non-alpha-in-dictionary,token-is-substring,unexpected-line-ending,whitespace-in-dictionary,minified-file |