Update translation file(s) of the app #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update mo files | |
on: | |
push: | |
branches: ["main"] | |
paths: | |
- "package_build/locale/**/*.po" | |
- ".github/workflows/update-mo-files.yml" | |
workflow_dispatch: | |
jobs: | |
push: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install Poethepoet | |
run: pipx install poethepoet | |
- name: Install gettext utils | |
run: sudo apt install gettext | |
- name: Update mo files | |
run: poe msgfmt | |
- name: Push changes to the repository | |
uses: EndBug/[email protected] | |
with: | |
author_name: github-actions[bot] | |
author_email: 41898282+github-actions[bot]@users.noreply.github.com | |
add: "package_build/locale/*" |