@@ -59,19 +59,19 @@ name: Check Spelling
59
59
on :
60
60
push :
61
61
branches :
62
- - " **"
62
+ - " **"
63
63
tags-ignore :
64
- - " **"
64
+ - " **"
65
65
pull_request_target :
66
66
branches :
67
- - " **"
67
+ - " **"
68
68
types :
69
- - ' opened'
70
- - ' reopened'
71
- - ' synchronize'
69
+ - " opened"
70
+ - " reopened"
71
+ - " synchronize"
72
72
issue_comment :
73
73
types :
74
- - ' created'
74
+ - " created"
75
75
76
76
jobs :
77
77
spelling :
@@ -94,49 +94,49 @@ jobs:
94
94
# note: If you use only_check_changed_files, you do not want cancel-in-progress
95
95
cancel-in-progress : true
96
96
steps :
97
- - name : checkout
98
- uses : actions/checkout@v4
99
- with :
100
- fetch-depth : ${{ !contains(env.workflow_check_commit_messages, 'commits') && '1' || '0' }}
101
- - name : test-clean
102
- shell : bash
103
- run :
104
- cp -R . ../introspected/;
105
- mv ../introspected .
106
- - name : test-merge
107
- if : ${{ contains(github.event_name, 'pull_request') }}
108
- uses :
check-spelling/[email protected]
109
- with :
110
- path : introspected
111
- - name : check-spelling
112
- if : env.MERGE_FAILED != '1'
113
- id : spelling
114
- uses : ./
115
- with :
116
- suppress_push_for_open_pull_request : 1
117
- check_file_names : 1
118
- experimental_path : introspected
119
- spell_check_this : check-spelling/spell-check-this@prerelease
120
- checkout : false
121
- post_comment : 0
122
- use_magic_file : 1
123
- report-timing : 1
124
- experimental_apply_changes_via_bot : 1
125
- use_sarif : ${{ (!github.event.pull_request || (github.event.pull_request.head.repo.full_name == github.repository)) && 1 }}
126
- extra_dictionary_limit : 10
127
- # this repository doesn't use php, but the dictionary has fairly good coverage
128
- extra_dictionaries :
129
- cspell:software-terms/dict/softwareTerms.txt
130
- cspell:php/dict/php.txt
131
- cspell:node/node.txt
132
- cspell:python/src/python/python-lib.txt
133
- check_commit_messages : ${{ env.workflow_check_commit_messages }}
134
- ignore-pattern : ' [^\p{Ll}\p{Lm}\p{Lt}\p{Lu}]'
135
- upper-pattern : ' [\p{Lu}\p{Lt}\p{Lm}]'
136
- lower-pattern : ' [\p{Ll}\p{Lm}]'
137
- not-lower-pattern : ' [^\p{Ll}\p{Lm}]'
138
- not-upper-or-lower-pattern : ' [^\p{Lu}\p{Lt}\p{Lm}]'
139
- punctuation-pattern : " '"
97
+ - name : checkout
98
+ uses : actions/checkout@v4
99
+ with :
100
+ fetch-depth : ${{ !contains(env.workflow_check_commit_messages, 'commits') && '1' || '0' }}
101
+ - name : test-clean
102
+ shell : bash
103
+ run : |
104
+ cp -R . ../introspected/;
105
+ mv ../introspected .
106
+ - name : test-merge
107
+ if : ${{ contains(github.event_name, 'pull_request') }}
108
+ uses :
check-spelling/[email protected]
109
+ with :
110
+ path : introspected
111
+ - name : check-spelling
112
+ if : env.MERGE_FAILED != '1'
113
+ id : spelling
114
+ uses : ./
115
+ with :
116
+ suppress_push_for_open_pull_request : 1
117
+ check_file_names : 1
118
+ experimental_path : introspected
119
+ spell_check_this : check-spelling/spell-check-this@prerelease
120
+ checkout : false
121
+ post_comment : 0
122
+ use_magic_file : 1
123
+ report-timing : 1
124
+ experimental_apply_changes_via_bot : 1
125
+ use_sarif : ${{ (!github.event.pull_request || (github.event.pull_request.head.repo.full_name == github.repository)) && 1 }}
126
+ extra_dictionary_limit : 10
127
+ # this repository doesn't use php, but the dictionary has fairly good coverage
128
+ extra_dictionaries : |
129
+ cspell:software-terms/dict/softwareTerms.txt
130
+ cspell:php/dict/php.txt
131
+ cspell:node/node.txt
132
+ cspell:python/src/python/python-lib.txt
133
+ check_commit_messages : ${{ env.workflow_check_commit_messages }}
134
+ ignore-pattern : ' [^\p{Ll}\p{Lm}\p{Lt}\p{Lu}]'
135
+ upper-pattern : ' [\p{Lu}\p{Lt}\p{Lm}]'
136
+ lower-pattern : ' [\p{Ll}\p{Lm}]'
137
+ not-lower-pattern : ' [^\p{Ll}\p{Lm}]'
138
+ not-upper-or-lower-pattern : ' [^\p{Lu}\p{Lt}\p{Lm}]'
139
+ punctuation-pattern : " '"
140
140
141
141
comment-push :
142
142
name : Report (Push)
@@ -147,16 +147,16 @@ jobs:
147
147
contents : write
148
148
if : (success() || failure()) && needs.spelling.outputs.followup && github.event_name == 'push'
149
149
steps :
150
- - name : checkout
151
- uses : actions/checkout@v4
152
- - name : comment
153
- uses : ./
154
- with :
155
- checkout : false
156
- spell_check_this : check-spelling/spell-check-this@prerelease
157
- task : ${{ needs.spelling.outputs.followup }}
158
- internal_state_directory : ${{ needs.spelling.outputs.docker_container && needs.spelling.outputs.internal_state_directory }}
159
- caller_container : ${{ needs.spelling.outputs.docker_container }}
150
+ - name : checkout
151
+ uses : actions/checkout@v4
152
+ - name : comment
153
+ uses : ./
154
+ with :
155
+ checkout : false
156
+ spell_check_this : check-spelling/spell-check-this@prerelease
157
+ task : ${{ needs.spelling.outputs.followup }}
158
+ internal_state_directory : ${{ needs.spelling.outputs.docker_container && needs.spelling.outputs.internal_state_directory }}
159
+ caller_container : ${{ needs.spelling.outputs.docker_container }}
160
160
161
161
comment-pr :
162
162
name : Report (PR)
@@ -168,17 +168,17 @@ jobs:
168
168
pull-requests : write
169
169
if : (success() || failure()) && needs.spelling.outputs.followup && contains(github.event_name, 'pull_request')
170
170
steps :
171
- - name : checkout
172
- uses : actions/checkout@v4
173
- - name : comment
174
- uses : ./
175
- with :
176
- checkout : false
177
- spell_check_this : check-spelling/spell-check-this@prerelease
178
- task : ${{ needs.spelling.outputs.followup }}
179
- internal_state_directory : ${{ needs.spelling.outputs.docker_container && needs.spelling.outputs.internal_state_directory }}
180
- caller_container : ${{ needs.spelling.outputs.docker_container }}
181
- experimental_apply_changes_via_bot : 1
171
+ - name : checkout
172
+ uses : actions/checkout@v4
173
+ - name : comment
174
+ uses : ./
175
+ with :
176
+ checkout : false
177
+ spell_check_this : check-spelling/spell-check-this@prerelease
178
+ task : ${{ needs.spelling.outputs.followup }}
179
+ internal_state_directory : ${{ needs.spelling.outputs.docker_container && needs.spelling.outputs.internal_state_directory }}
180
+ caller_container : ${{ needs.spelling.outputs.docker_container }}
181
+ experimental_apply_changes_via_bot : 1
182
182
183
183
update :
184
184
name : Update PR
@@ -188,19 +188,19 @@ jobs:
188
188
actions : read
189
189
runs-on : ubuntu-latest
190
190
if : ${{
191
- github.event_name == 'issue_comment' &&
192
- github.event.issue.pull_request &&
193
- contains(github.event.comment.body, '@check-spelling-bot apply')
191
+ github.event_name == 'issue_comment' &&
192
+ github.event.issue.pull_request &&
193
+ contains(github.event.comment.body, '@check-spelling-bot apply')
194
194
}}
195
195
concurrency :
196
196
group : spelling-update-${{ github.event.issue.number }}
197
197
cancel-in-progress : false
198
198
steps :
199
- - name : checkout
200
- uses : actions/checkout@v4
201
- - name : apply spelling updates
202
- uses : ./
203
- with :
204
- experimental_apply_changes_via_bot : 1
205
- checkout : false
206
- ssh_key : " ${{ secrets.CHECK_SPELLING }}"
199
+ - name : checkout
200
+ uses : actions/checkout@v4
201
+ - name : apply spelling updates
202
+ uses : ./
203
+ with :
204
+ experimental_apply_changes_via_bot : 1
205
+ checkout : false
206
+ ssh_key : " ${{ secrets.CHECK_SPELLING }}"
0 commit comments