-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
38 lines (33 loc) · 1.04 KB
/
translations.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Transifex
on:
push:
branches: [master, ]
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
Push-To-Transifex:
name: Update translations on Transifex
if: github.repository == 'kovidgoyal/calibre'
runs-on: ubuntu-latest
container:
image: 'archlinux/archlinux:latest'
env:
CI: 'true'
steps:
- name: Setup container
run: |
pacman -Syu --noconfirm
pacman -S --noconfirm tar
- name: Checkout source code
uses: actions/checkout@master
with:
fetch-depth: 2
- name: Install calibre dependencies
run: setup/arch-ci.sh
- name: Bootstrap calibre
run: runuser -u ci -- python setup.py bootstrap --ephemeral
- name: Update translations
env:
tx: ${{ secrets.tx }}
run: |
runuser -u ci -- python setup/unix-ci.py pot