calibre/.github/workflows/translations.yml
2020-11-11 11:48:06 +05:30

39 lines
1.0 KiB
YAML

name: Transifex
on:
push:
branches: [master, ]
jobs:
Push-To-Transifex:
name: Update translations on Transifex
if: github.repository == 'kovidgoyal/calibre'
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@master
with:
fetch-depth: 2
- name: Checkout translations
uses: actions/checkout@master
with:
repository: 'kovidgoyal/calibre-translations'
path: 'translations'
- name: Set up Python
uses: actions/setup-python@master
with:
python-version: 3.8
- name: Install translations dependencies
run:
python -m pip install 'urllib3<1.26' transifex-client sphinx
- name: Update translations
env:
tx: ${{ secrets.tx }}
CI: "true"
run:
python setup/unix-ci.py pot