Home

Awesome

Spellchecker CLI Action

A simple, customizable wrapper around Spellchecker CLI for GitHub Actions workflows.

Check out Spellchecker CLI Summary for a full-featured Spellchecker CLI workflow that can leave comments and status checks on your PRs.

Use Case

Catch spelling mistakes in your open-source software project's documentation as part of its continuous integration process.

Usage

Here is an example workflow definition. It uses actions/checkout to check out your repository's code, then tbroadley/spellchecker-cli-action to spellcheck it.

on: push
jobs:
  spellcheck:
    runs-on: ubuntu-latest
    name: Spellcheck
    steps:
      - uses: actions/checkout@v3
      - uses: tbroadley/spellchecker-cli-action@v1

Inputs

See Spellchecker CLI for more details about these inputs.

NameDescriptionRequired?Default Value
filesA list of files or globs to spellcheck, separated by spaces.false"**/*.txt **/*.md"
languageThe language of the files. See Spellchecker CLI for details about default and available languages.false"en-US"
dictionariesA list of files to combine into a personal dictionary, separated by spaces.false""
noGitignoreDon't respect ignore files (.gitignore, .ignore, etc).falsefalse
ignoreA list of regexes, separated by spaces. Spelling mistakes that match any of these regexes (after being wrapped with ^ and $) will be ignored.false""
pluginsA list of retext plugins to use, separated by spaces. See Spellchecker CLI for details about available plugins.false"spell indefinite-article repeated-words syntax-mentions syntax-urls"
noSuggestionsDo not print suggested replacements for misspelled words. This option will improve Spellchecker CLI's runtime when many errors are detected.falsefalse
quietDo not output anything for files that contain no spelling mistakes.falsefalse
frontmatterKeysA list of frontmatter keys whose values should be spellchecked, separated by spaces. By default, no values are spellchecked. Only valid when the frontmatter plugin is used.false""
reportsA list of report files to generate, separated by spaces. The type of the report is based on the extension of the file. (Supported: .junit.xml and .json)false""
configA path to a config file.false""

Here's an example that uses inputs:

- uses: tbroadley/spellchecker-cli-action@v1
  with:
    files: "**/*.md !build/*.md"
    quiet: true