Skip to content

Commit

Permalink
Merge pull request #3 from susanshi/spellcheck
Browse files Browse the repository at this point in the history
add spell check workflow
  • Loading branch information
susanshi authored Aug 28, 2024
2 parents c486364 + dafa89b commit 4820c1d
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/spelling_action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Spellcheck Action

on:
pull_request:
branches:
- dev
workflow_dispatch:

jobs:
build:
name: Spellcheck
runs-on: ubuntu-latest
steps:
# The checkout step
- uses: actions/checkout@v3
- uses: rojopolis/spellcheck-github-actions@0.41.0
name: Spellcheck
with:
config_path: config/.spellcheck.yml # put path to configuration file here
task_name: Markdown
- uses: actions/upload-artifact@v3
if: '!cancelled()' # Do not upload artifact if job was cancelled
with:
name: Spellcheck Output
path: spellcheck-output.txt
16 changes: 16 additions & 0 deletions config/.spellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
matrix:
- name: Markdown
aspell:
lang: en
dictionary:
encoding: utf-8
pipeline:
- pyspelling.filters.markdown:
- pyspelling.filters.html:
comments: false
ignores:
- code
- pre
sources:
- '**/*.md'
default_encoding: utf-8

0 comments on commit 4820c1d

Please sign in to comment.