From 47853a050d6b4200474e05b5fb566f0fff58e21b Mon Sep 17 00:00:00 2001 From: "Ilya (Marshal)" Date: Thu, 14 Nov 2024 13:08:13 +0100 Subject: [PATCH] Fix update_lexicons workflow --- .github/workflows/update_lexicons.yml | 5 ++++- update_lexicons.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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__':