Merge pull request #11 from andrea-marchionni/fixes #9
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 po files | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
update-po-files: | |
runs-on: ubuntu-latest | |
permissions: | |
# Give the default GITHUB_TOKEN write permission to commit and push the | |
# added or changed files to the repository. | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Sphinx | |
run: pip install -r requirements.txt | |
- name: Update po files | |
id: update-po | |
run: | | |
make gettext | |
sphinx-intl update -p _build/gettext -l en | |
rm -f *.csv || true # remove csv files | |
# Commit all changed files back to the repository | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Update po files |