Merge pull request #50 from HifiExperiments/asset-security #46
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: Translation files CI update | |
on: | |
push: | |
branches: | |
- master | |
# Only run if something other than locales are updated. | |
# This is to prevent this workflow from running when Weblate commits new translations. | |
paths-ignore: | |
- 'source/locales/**' | |
jobs: | |
regenerate_locales_docs: | |
runs-on: ubuntu-20.04 | |
name: Update translation files | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Regenerate translation files | |
shell: bash | |
run: | | |
make gettext | |
sphinx-intl update | |
- name: Commit changes | |
uses: actions-x/commit@v6 | |
with: | |
name: AnimatedMannequin | |
email: [email protected] | |
message: Automatically updated locales | |
files: source/locales/** | |
token: ${{ secrets.ANIMATED_MANNEQUIN_COMMIT_TOKEN }} |