Skip to content

Commit 34b450d

Browse files
committed
prettier: Fix spelling.yml
Adjust file to make prettier happy
1 parent c3d0b0e commit 34b450d

File tree

1 file changed

+82
-82
lines changed

1 file changed

+82
-82
lines changed

.github/workflows/spelling.yml

+82-82
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,19 @@ name: Check Spelling
5959
on:
6060
push:
6161
branches:
62-
- "**"
62+
- "**"
6363
tags-ignore:
64-
- "**"
64+
- "**"
6565
pull_request_target:
6666
branches:
67-
- "**"
67+
- "**"
6868
types:
69-
- 'opened'
70-
- 'reopened'
71-
- 'synchronize'
69+
- "opened"
70+
- "reopened"
71+
- "synchronize"
7272
issue_comment:
7373
types:
74-
- 'created'
74+
- "created"
7575

7676
jobs:
7777
spelling:
@@ -94,49 +94,49 @@ jobs:
9494
# note: If you use only_check_changed_files, you do not want cancel-in-progress
9595
cancel-in-progress: true
9696
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: "'"
140140

141141
comment-push:
142142
name: Report (Push)
@@ -147,16 +147,16 @@ jobs:
147147
contents: write
148148
if: (success() || failure()) && needs.spelling.outputs.followup && github.event_name == 'push'
149149
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 }}
160160

161161
comment-pr:
162162
name: Report (PR)
@@ -168,17 +168,17 @@ jobs:
168168
pull-requests: write
169169
if: (success() || failure()) && needs.spelling.outputs.followup && contains(github.event_name, 'pull_request')
170170
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
182182

183183
update:
184184
name: Update PR
@@ -188,19 +188,19 @@ jobs:
188188
actions: read
189189
runs-on: ubuntu-latest
190190
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')
194194
}}
195195
concurrency:
196196
group: spelling-update-${{ github.event.issue.number }}
197197
cancel-in-progress: false
198198
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

Comments
 (0)