From c597cfc6d6abc40a438ee34037f653160e50bf16 Mon Sep 17 00:00:00 2001 From: Joshua Shapiro Date: Tue, 12 Mar 2024 09:00:36 -0400 Subject: [PATCH] cat spelling errors --- .github/workflows/spellcheck.yml | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index 75a7ff166..e1167d29b 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -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 @@ -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<> "$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 }} @@ -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