Skip to content

Commit

Permalink
Merge pull request #27 from Lombiq/issue/OSOE-158
Browse files Browse the repository at this point in the history
OSOE-158: Evaluate using the Check Spelling action
  • Loading branch information
Piedone authored Oct 24, 2022
2 parents 04e004f + 644a3fb commit fd25b50
Show file tree
Hide file tree
Showing 9 changed files with 821 additions and 1 deletion.
50 changes: 50 additions & 0 deletions .github/actions/spelling/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# This file needs to be present in this exact folder for the workflow using this action to be able to work with submodules.
name: Spelling
description: Checks for spelling errors in files.

inputs:
dictionary-source-prefixes:
# When v0.0.21 is out update this and the one in spelling.yml with the version below.
description: JSON map of prefixes for dictionary urls, "cspell" is necessary. See https://github.com/check-spelling/check-spelling/blob/86a22cfaff3846dbd788acea5d18cf5db6d40dd1/action.yml#L64 for current version.
required: false
default: '{"cspell": "https://raw.githubusercontent.com/check-spelling/cspell-dicts/v20220816/dictionaries/"}'
extra-dictionaries:
description: Space delimited list of URLs (or `prefix:`+path) to additional word lists
required: false
default:
cspell:filetypes/filetypes.txt
cspell:django/django.txt
cspell:aws/aws.txt
cspell:html/html.txt
cspell:css/css.txt
cspell:csharp/csharp.txt
cspell:rust/rust.txt
cspell:npm/npm.txt
cspell:dotnet/dotnet.txt
cspell:scala/scala.txt
lombiq:expect.txt
config:
description: Spelling configuration directory
required: false
type: string
default: .github/actions/check-spelling
spell-check-this:
description: Repository with default configuration to use, the default from Check Spelling is ''.
required: false
type: string
default: Lombiq/GitHub-Actions@issue/OSOE-158

runs:
using: "composite"
steps:
- name: Check Spelling
# Prerelease, this commit includes a specific fix we utilize. Use v0.0.21 once available.
uses: check-spelling/check-spelling@86a22cfaff3846dbd788acea5d18cf5db6d40dd1
with:
dictionary_source_prefixes: ${{ inputs.dictionary-source-prefixes }}
extra_dictionaries: ${{ inputs.extra-dictionaries }}
experimental_apply_changes_via_bot: 0
suppress_push_for_open_pull_request: 1
post_comment: 1
spell_check_this: ${{ inputs.spell-check-this }}
config: ${{ inputs.config }}
Loading

0 comments on commit fd25b50

Please sign in to comment.