Skip to content

Commit cf4d1ef

Browse files
committed
ci: Auto-update cspell dictionary
1 parent 340eddc commit cf4d1ef

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ concurrency:
3333
jobs:
3434
tidy:
3535
uses: taiki-e/github-actions/.github/workflows/tidy.yml@main
36+
permissions:
37+
contents: read
38+
pull-requests: write # for gh pr edit --add-assignee
39+
repository-projects: read # for gh pr edit --add-assignee
40+
secrets: inherit
3641

3742
test:
3843
strategy:

tools/tidy.sh

Lines changed: 3 additions & 1 deletion
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)