Skip to content

Commit

Permalink
cat spelling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jashapiro committed Mar 12, 2024
1 parent 5330bbe commit c597cfc
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions .github/workflows/spellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
pull_request: # TEMPORARY
branches:
- main
push:
branches:
jashapiro/write-spelling

workflow_dispatch:
schedule:
- cron: "0 0 * * 1" # every Monday at midnight
Expand Down Expand Up @@ -64,25 +68,6 @@ jobs:
name: spell_check_errors
path: spell_check_errors.tsv

- name: Get the typo contents
id: get-typos
run: |
{
echo 'typos<<EOF'
cat spell_check_errors.tsv
echo EOF
} >> "$GITHUB_OUTPUT"
- name: Post errors to PR if failed
if: ${{ github.event_name == 'pull_request' && steps.spell.outputs.error_count > 0 }}
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
**Spellcheck failed!**
Errors:
${{ steps.get-typos.output.typos }}
# This step is temporary for use during OpenScPCA launch prep.
- name: Post errors to PR if failed
if: ${{ github.event_name == 'pull_request' && steps.spell.outputs.error_count > 0 }}
Expand Down Expand Up @@ -120,5 +105,5 @@ jobs:
if: steps.spell.outputs.error_count > 0
run: |
echo "There were ${{ steps.spell.outputs.error_count }} errors"
cat
cat spell_check_errors.tsv
exit 1

0 comments on commit c597cfc

Please sign in to comment.