mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-07 05:20:30 +00:00
@@ -978,9 +978,9 @@ if [[ -f .cspell.json ]]; then
|
|||||||
printf '%s\n' "${config_new}" >|.cspell.json
|
printf '%s\n' "${config_new}" >|.cspell.json
|
||||||
dependencies_words=''
|
dependencies_words=''
|
||||||
if [[ -n "${has_rust}" ]]; then
|
if [[ -n "${has_rust}" ]]; then
|
||||||
dependencies_words=$(npx -y cspell@8.17.5 stdin --no-progress --no-summary --words-only --unique <<<"${dependencies}" || true)
|
dependencies_words=$(npx -y cspell stdin --no-progress --no-summary --words-only --unique <<<"${dependencies}" || true)
|
||||||
fi
|
fi
|
||||||
all_words=$(ls_files | { grep -Fv "${project_dictionary}" || true; } | npx -y cspell@8.17.5 --file-list stdin --no-progress --no-summary --words-only --unique || true)
|
all_words=$(ls_files | { grep -Fv "${project_dictionary}" || true; } | npx -y cspell --file-list stdin --no-progress --no-summary --words-only --unique || true)
|
||||||
printf '%s\n' "${config_old}" >|.cspell.json
|
printf '%s\n' "${config_old}" >|.cspell.json
|
||||||
trap -- 'printf >&2 "%s\n" "${0##*/}: trapped SIGINT"; exit 1' SIGINT
|
trap -- 'printf >&2 "%s\n" "${0##*/}: trapped SIGINT"; exit 1' SIGINT
|
||||||
cat >|.github/.cspell/rust-dependencies.txt <<EOF
|
cat >|.github/.cspell/rust-dependencies.txt <<EOF
|
||||||
@@ -1000,11 +1000,11 @@ EOF
|
|||||||
error "you may want to mark .github/.cspell/rust-dependencies.txt linguist-generated"
|
error "you may want to mark .github/.cspell/rust-dependencies.txt linguist-generated"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
info "running \`git ls-files | npx -y cspell@8.17.5 --file-list stdin --no-progress --no-summary\`"
|
info "running \`git ls-files | npx -y cspell --file-list stdin --no-progress --no-summary\`"
|
||||||
if ! ls_files | npx -y cspell@8.17.5 --file-list stdin --no-progress --no-summary; then
|
if ! ls_files | npx -y cspell --file-list stdin --no-progress --no-summary; then
|
||||||
error "spellcheck failed: please fix uses of below words or add to ${project_dictionary} if correct"
|
error "spellcheck failed: please fix uses of below words or add to ${project_dictionary} if correct"
|
||||||
printf '=======================================\n'
|
printf '=======================================\n'
|
||||||
{ ls_files | npx -y cspell@8.17.5 --file-list stdin --no-progress --no-summary --words-only || true; } | sed "s/'s$//g" | LC_ALL=C sort -f -u
|
{ ls_files | npx -y cspell --file-list stdin --no-progress --no-summary --words-only || true; } | sed "s/'s$//g" | LC_ALL=C sort -f -u
|
||||||
printf '=======================================\n\n'
|
printf '=======================================\n\n'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user