Skip to content

Commit

Permalink
CI: add po generation
Browse files Browse the repository at this point in the history
  • Loading branch information
gsanchietti committed Feb 22, 2023
1 parent a0f8b7d commit 91de3dd
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/update-translations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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@v3

- name: Install Sphinx
run: sudo apt-get install -y python3-sphinx python3-pip

- name: Install Sphinx deps
run: pip install -r requirements.txt

- name: Update po files
id: update-po
run: |
make gettext
sphinx-intl update -p _build/gettext -l it
# Commit all changed files back to the repository
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update po files

0 comments on commit 91de3dd

Please sign in to comment.