Skip to content

Commit 0009800

Browse files
committed
ci: Auto-update cspell dictionary
1 parent 43839a9 commit 0009800

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/ci.yml

+5
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ jobs:
4747
event_name: ${{ github.event_name }}
4848
tidy:
4949
uses: taiki-e/github-actions/.github/workflows/tidy.yml@main
50+
permissions:
51+
contents: read
52+
pull-requests: write # for gh pr edit --add-assignee
53+
repository-projects: read # for gh pr edit --add-assignee
54+
secrets: inherit
5055

5156
test:
5257
strategy:

tools/tidy.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,9 @@ EOF
750750
if [[ -n "${dependencies_words}" ]]; then
751751
LC_ALL=C sort -f >>.github/.cspell/rust-dependencies.txt <<<"${dependencies_words}"$'\n'
752752
fi
753-
check_diff .github/.cspell/rust-dependencies.txt
753+
if [[ -z "${REMOVE_UNUSED_WORDS:-}" ]]; then
754+
check_diff .github/.cspell/rust-dependencies.txt
755+
fi
754756
if ! grep -Fq '.github/.cspell/rust-dependencies.txt linguist-generated' .gitattributes; then
755757
error "you may want to mark .github/.cspell/rust-dependencies.txt linguist-generated"
756758
fi

0 commit comments

Comments
 (0)