Update locale files #17
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 locale files | |
on: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
LANGUAGES: en,lt | |
IS_REMOTE_BUILD: true | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Generate POT/PO files | |
run: | | |
make gettext | |
sphinx-intl update -p ./locale/sources/ -d ./locale/ -l lt | |
- name: Upload locale files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "Gailius AI" | |
git add locale/ | |
git commit -m "Update locale files" | |
git push |