Skip to content

Commit

Permalink
ci: Auto-update cspell dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Oct 20, 2024
1 parent bea539f commit bf8779b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ jobs:
event_name: ${{ github.event_name }}
tidy:
uses: taiki-e/github-actions/.github/workflows/tidy.yml@main
permissions:
contents: read
pull-requests: write # for gh pr edit --add-assignee
repository-projects: read # for gh pr edit --add-assignee
secrets: inherit

test:
strategy:
Expand Down
4 changes: 3 additions & 1 deletion tools/tidy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,9 @@ EOF
if [[ -n "${dependencies_words}" ]]; then
LC_ALL=C sort -f >>.github/.cspell/rust-dependencies.txt <<<"${dependencies_words}"$'\n'
fi
check_diff .github/.cspell/rust-dependencies.txt
if [[ -z "${REMOVE_UNUSED_WORDS:-}" ]]; then
check_diff .github/.cspell/rust-dependencies.txt
fi
if ! grep -Fq '.github/.cspell/rust-dependencies.txt linguist-generated' .gitattributes; then
error "you may want to mark .github/.cspell/rust-dependencies.txt linguist-generated"
fi
Expand Down

0 comments on commit bf8779b

Please sign in to comment.