Skip to content

Commit 1c738da

Browse files
committed
Only do spell checking on PRs
1 parent 4cd861b commit 1c738da

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

.github/workflows/spelling.yaml

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ name: Check Spelling
22

33
# Based on example in https://github.com/check-spelling/spell-check-this.
44
on:
5-
push:
6-
branches:
7-
- "**"
8-
tags-ignore:
9-
- "**"
105
pull_request_target:
116
branches:
127
- "**"
@@ -30,7 +25,7 @@ jobs:
3025
outputs:
3126
followup: ${{ steps.spelling.outputs.followup }}
3227
runs-on: ubuntu-latest
33-
if: ${{ contains(github.event_name, 'pull_request') || github.event_name == 'push' }}
28+
if: ${{ contains(github.event_name, 'pull_request') }}
3429
concurrency:
3530
group: spelling-${{ github.event.pull_request.number || github.ref }}
3631
cancel-in-progress: true
@@ -53,22 +48,6 @@ jobs:
5348
cspell:companies/dict/companies.txt
5449
cspell:filetypes/filetypes.txt
5550

56-
comment-push:
57-
name: Report (Push)
58-
# If your workflow isn't running on push, you can remove this job
59-
runs-on: ubuntu-latest
60-
needs: spelling
61-
permissions:
62-
contents: write
63-
if: (success() || failure()) && needs.spelling.outputs.followup && github.event_name == 'push'
64-
steps:
65-
- name: comment
66-
uses: check-spelling/check-spelling@prerelease
67-
with:
68-
checkout: true
69-
spell_check_this: check-spelling/spell-check-this@prerelease
70-
task: ${{ needs.spelling.outputs.followup }}
71-
7251
comment-pr:
7352
name: Report (PR)
7453
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)