Skip to content

Commit

Permalink
Add spelling error failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jashapiro committed Mar 27, 2024
1 parent 8558b4f commit 85495ca
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/manubot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- main
- jashapiro/*
pull_request:
branches:
- main
Expand Down Expand Up @@ -118,3 +119,13 @@ jobs:
This build is associated with commit ${{ env.TRIGGERING_SHA_7 }}.
[Manuscript build](${{ steps.artifact-upload-step.outputs.artifact-url }})
- name: Fail if there are spelling errors
run: |
# only check the the spelling locations, which skips the preambles/authors
if [ -s output/spelling-error-locations.txt ]; then
echo "No spelling errors in text"
else
echo "Spelling errors (some may be in the author list):"
cat output/spelling_errors.txt
exit 1
fi

0 comments on commit 85495ca

Please sign in to comment.