Skip to content

Commit

Permalink
Fix update_lexicons workflow (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX authored Nov 14, 2024
1 parent ab74814 commit 5c31f3b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/update_lexicons.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Fetch new lexicons and regenerate code and docs

on: [ workflow_dispatch ]
on:
workflow_dispatch:
schedule:
- cron: '0 12 * * 5' # at 12:00 on Friday day

permissions:
contents: read
Expand Down
8 changes: 4 additions & 4 deletions update_lexicons.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ def main() -> None:
_print('- Running codegen (poetry run atp -s gen all)...')
_run_subprocess(['poetry', 'run', 'atp', '-s', 'gen', 'all'])

_print('- Running ruff (poetry run ruff check --fix .)...')
_run_subprocess(['poetry', 'run', 'ruff', 'check', '--fix', '.'])
_print('- Running ruff (poetry run ruff check --quiet --fix .)...')
_run_subprocess(['poetry', 'run', 'ruff', 'check', '--quiet', '--fix', '.'])

_print('- Running ruff format (poetry run ruff -q format .)...')
_run_subprocess(['poetry', 'run', 'ruff', 'format', '-q', '.'])
_print('- Running ruff format (poetry run ruff --quiet format .)...')
_run_subprocess(['poetry', 'run', 'ruff', 'format', '--quiet', '.'])

_print('- Generating docs (make -s -C docs gen)...')
_remove_content_in_path(_FOLDER_OF_GEN_DOCS)
Expand Down

0 comments on commit 5c31f3b

Please sign in to comment.