diff --git a/.github/workflows/update_lexicons.yml b/.github/workflows/update_lexicons.yml index 54cfcaa0..7ebc8e10 100644 --- a/.github/workflows/update_lexicons.yml +++ b/.github/workflows/update_lexicons.yml @@ -1,6 +1,9 @@ name: Fetch new lexicons and regenerate code and docs -on: [ workflow_dispatch ] +on: + push: + branches: + - fix-update-lexicons-workflow permissions: contents: read diff --git a/update_lexicons.py b/update_lexicons.py index 43925cb5..b229ea92 100755 --- a/update_lexicons.py +++ b/update_lexicons.py @@ -165,7 +165,7 @@ def main() -> None: commit_message = f'Update lexicons fetched from {sha[:7]} committed {commit_date}' _print(f'Commit message: {commit_message}') - print(commit_message) # noqa: T201 + print(commit_message, end='') # noqa: T201 if __name__ == '__main__':