Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
closes #96
Since spelling errors due to names and such seem to be common, I decided that rather than making the workflow fail on spelling errors, it would be better to just print out the number of spelling errors in the artifact comment, so that is what I have done here.
I count the total number of errors by their locations, not the number of indepdendent errors. This was partly because I found that the locations file only includes the content files, while the
spelling-errors.txt
file also included errors in the frontmatter, which are mostly names.I also implemented failure for manual triggers, but I don't expect that to be used much.
The first build here should demonstrate the output, if it is working.