Skip to content

Commit 492a6b1

Browse files
committed
Try single job
1 parent 2892a84 commit 492a6b1

1 file changed

Lines changed: 1 addition & 32 deletions

File tree

.github/workflows/spelling3.yml

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,6 @@
33

44
name: Check Spelling
55

6-
# Comment management is handled through a secondary job, for details see:
7-
# https://github.com/check-spelling/check-spelling/wiki/Feature%3A-Restricted-Permissions
8-
#
9-
# `jobs.comment-push` runs when a push is made to a repository and the `jobs.spelling` job needs to make a comment
10-
# (in odd cases, it might actually run just to collapse a comment, but that's fairly rare)
11-
# it needs `contents: write` in order to add a comment.
12-
#
13-
# `jobs.comment-pr` runs when a pull_request is made to a repository and the `jobs.spelling` job needs to make a comment
14-
# or collapse a comment (in the case where it had previously made a comment and now no longer needs to show a comment)
15-
# it needs `pull-requests: write` in order to manipulate those comments.
16-
176
# Updating pull request branches is managed via comment handling.
187
# For details, see: https://github.com/check-spelling/check-spelling/wiki/Feature:-Update-expect-list
198
#
@@ -78,10 +67,8 @@ jobs:
7867
name: Check Spelling
7968
permissions:
8069
contents: read
81-
pull-requests: read
70+
pull-requests: write
8271
actions: read
83-
outputs:
84-
followup: ${{ steps.spelling.outputs.followup }}
8572
runs-on: ubuntu-latest
8673
if: ${{ contains(github.event_name, 'pull_request') || github.event_name == 'push' }}
8774
concurrency:
@@ -96,7 +83,6 @@ jobs:
9683
suppress_push_for_open_pull_request: ${{ github.actor != 'dependabot[bot]' && 1 }}
9784
checkout: true
9885
check_file_names: 1
99-
post_comment: 0
10086
use_magic_file: 1
10187
warnings: bad-regex,binary-file,deprecated-feature,ignored-expect-variant,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,unclosed-block-ignore-begin,unclosed-block-ignore-end
10288
check_extra_dictionaries: ""
@@ -127,20 +113,3 @@ jobs:
127113
cspell:cpp/ecosystem.txt
128114
cspell:typescript/typescript.txt
129115
cspell:cpp/lang-keywords.txt
130-
131-
comment-pr:
132-
name: Report (PR)
133-
# If you workflow isn't running on pull_request*, you can remove this job
134-
runs-on: ubuntu-latest
135-
needs: spelling
136-
permissions:
137-
actions: read
138-
contents: read
139-
pull-requests: write
140-
if: (success() || failure()) && needs.spelling.outputs.followup && contains(github.event_name, 'pull_request')
141-
steps:
142-
- name: comment
143-
uses: check-spelling/check-spelling@v0.0.24
144-
with:
145-
checkout: true
146-
task: ${{ needs.spelling.outputs.followup }}

0 commit comments

Comments
 (0)