Skip to content

Commit 1b4ef6f

Browse files
committed
try
1 parent 47a2a62 commit 1b4ef6f

File tree

1 file changed

+12
-29
lines changed

1 file changed

+12
-29
lines changed

.github/workflows/spelling.yml

Lines changed: 12 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -62,34 +62,17 @@ jobs:
6262
# note: If you use only_check_changed_files, you do not want cancel-in-progress
6363
cancel-in-progress: true
6464
steps:
65-
- name: check-spelling
66-
id: spelling
67-
uses: check-spelling/[email protected]
65+
- name: Get all changed markdown files
66+
uses: tj-actions/changed-files@v45
67+
id: changed_files
6868
with:
69-
# This workflow runs in response to both `push` and `pull_request`, if there's an open `pull_request` in the same repository
70-
# for a given branch, there's no reason to spend resources checking both the `push` and the `pull_request`, so this flag tells
71-
# the action while running for the `push` to find the `pull_request` and stop working early:
72-
suppress_push_for_open_pull_request: 1
73-
# The action will manage checking out the repository itself instead of requiring the workflow to use `actions/checkout...`:
74-
checkout: true
75-
# If running without `: write`, posting a comment won't work, and for security `: write` permissions are left to a distinct
76-
# (optional) job, here we skip trying to post a comment:
77-
post_comment: 0
78-
spell_check_file_extensions: .md .markdown
79-
use_magic_file: 1
80-
extra_dictionary_limit: 10
81-
extra_dictionaries:
82-
cspell:software-terms/software-terms.txt
83-
cspell:php/php.txt
84-
cspell:node/node.txt
85-
cspell:django/django.txt
86-
cspell:html/html.txt
87-
cspell:npm/npm.txt
88-
cspell:ruby/ruby.txt
89-
cspell:fullstack/fullstack.txt
90-
cspell:filetypes/filetypes.txt
91-
check_extra_dictionaries: ''
92-
dictionary_source_prefixes: >-
93-
{"cspell": "https://raw.githubusercontent.com/check-spelling/cspell-dicts/v20241114/dictionaries/"}
69+
files: |
70+
**.md
71+
72+
- name: Run Spellcheck
73+
id: spellcheck
74+
uses: rojopolis/spellcheck-github-actions@v0
75+
with:
76+
task_name: Markdown
77+
source_files: ${{ steps.changed_files.outputs.all_changed_files }}
9478

95-
# This workflow has opted not to use comments (users can view the report in GitHub Step Summary)

0 commit comments

Comments
 (0)