Skip to content

Commit

Permalink
update dictionary for aggregated docs (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
blankdots committed Dec 12, 2023
2 parents 8d7c95c + 4fc1b6e commit 507c4b8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/aggregate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- run: |
sudo apt-get install -yq aspell
pip3 install -q pyspelling
- uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
Expand Down
10 changes: 10 additions & 0 deletions aggregate-repositories.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ do
sed -i -E 's#cmd\/(.+)\/#''#g' docs/services/sda.md
git add docs/services/sda.md

# update wordlist
spell_result=$(pyspelling | awk '!/^<context>|^Misspelled|^--|check failed|Spelling check passed/ && NF > 0')

if [ -n "$spell_result" ]
then
echo "$spell_result" >> docs/dictionary/wordlist.txt
sort -u docs/dictionary/wordlist.txt -o docs/dictionary/wordlist.txt
git add docs/dictionary/wordlist.txt
fi

# check if there are any changes
if ! git status | grep 'nothing to commit'
then
Expand Down

0 comments on commit 507c4b8

Please sign in to comment.