igsekor / pyspelling-any

Repository is created for the support of any languages that you need for spell checking in Github Actions
MIT License
8 stars 5 forks source link

Spelling check failed but GitHub Action succed #7

Closed nlhomme closed 1 year ago

nlhomme commented 1 year ago

Hello,

This is my configuration inside the folder .github/workflows:

image

.spelling_action.yml

name: Spellcheck Action
on: push

jobs:
  build:
    name: Spellcheck
    runs-on: ubuntu-latest
    steps:
    # The checkout step
    - uses: actions/checkout@v3
    - uses: rojopolis/spellcheck-github-actions@v0
      name: Spellcheck
      with:
        config_path: .github/workflows/.spellcheck.yml
        output_file: spellcheck-output.txt

.spellcheck.yml

matrix:
- name: Markdown
  aspell:
    lang: fr
    d: fr_FR
  dictionary:
    encoding: utf-8
    wordlists:
    - .github/workflows/.wordlist.txt
  pipeline:
  - pyspelling.filters.markdown:
  - pyspelling.filters.html:
      comments: false
      ignores:
      - code
      - pre
  sources:
  - '_posts/*.md'
  default_encoding: utf-8

.wordlist.txt

CD-ROM

When I run a GitHub Action, the logs says that spell check has failed:

(...)
Misspelled words:
<htmlcontent> _posts/2023-07-04-Bujur-le-monde.md: html>body>p
--------------------------------------------------------------------------------
LHOMME
Nicolas
height
width
--------------------------------------------------------------------------------

!!!Spelling check failed!!!

But in the end, the action is marked as a success image

Can you help me find what's wrong?

Regards

nlhomme commented 1 year ago

I'm sorry, I opened the issue in the wrong project, I should do it here: https://github.com/rojopolis/spellcheck-github-actions/issues