Skip to content

Commit bffbc41

Browse files
committed
more changes
1 parent bfcfdad commit bffbc41

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

.github/workflows/spelling.yaml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,27 @@ name: Check Spelling
22

33
# Based on example in https://github.com/check-spelling/spell-check-this.
44
on:
5+
push:
6+
branches: ['main']
57
pull_request:
68
branches: ['main']
9+
types: ['opened', 'reopened', 'synchronize']
710
issue_comment:
811
types:
912
- 'created'
1013

11-
1214
jobs:
1315
spelling:
1416
name: Check Spelling
1517
permissions:
16-
# contents: read
18+
contents: read
1719
pull-requests: write
18-
# actions: read
19-
# security-events: write
20+
actions: read
21+
security-events: write
2022
outputs:
2123
followup: ${{ steps.spelling.outputs.followup }}
2224
runs-on: ubuntu-latest
23-
# if: ${{ contains(github.event_name, 'pull_request') }}
25+
if: ${{ contains(github.event_name, 'pull_request') || github.event_name == 'push' }}
2426
concurrency:
2527
group: spelling-${{ github.event.pull_request.number || github.ref }}
2628
cancel-in-progress: true
@@ -29,9 +31,10 @@ jobs:
2931
id: spelling
3032
uses: check-spelling/check-spelling@prerelease
3133
with:
32-
# suppress_push_for_open_pull_request: ${{ github.actor != 'dependabot[bot]' && 1 }}
34+
suppress_push_for_open_pull_request: ${{ github.actor != 'dependabot[bot]' && 1 }}
3335
checkout: true
3436
check_file_names: 0
37+
spell_check_this: check-spelling/spell-check-this@prerelease
3538
post_comment: 1
3639
use_magic_file: 1
3740
warnings: bad-regex,binary-file,deprecated-feature,large-file,limited-references,no-newline-at-eof,noisy-file,non-alpha-in-dictionary,token-is-substring,unexpected-line-ending,whitespace-in-dictionary,minified-file,unsupported-configuration,no-files-to-check
@@ -44,12 +47,13 @@ jobs:
4447
cspell:filetypes/filetypes.txt
4548

4649
comment-pr:
47-
name: Report (PR)
50+
name: Check Spelling Report (PR)
4851
runs-on: ubuntu-latest
4952
needs: spelling
50-
# permissions:
51-
# contents: read
52-
# pull-requests: write
53+
permissions:
54+
actions: read
55+
contents: read
56+
pull-requests: write
5357
if: (success() || failure()) && needs.spelling.outputs.followup && contains(github.event_name, 'pull_request')
5458
steps:
5559
- name: comment

0 commit comments

Comments
 (0)