-
-
Notifications
You must be signed in to change notification settings - Fork 224
35 lines (31 loc) · 994 Bytes
/
sync-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
name: 🌍 Sync Translations
on:
schedule:
- cron: "5 1 * * *"
workflow_dispatch:
jobs:
sync_translations:
runs-on: ubuntu-22.04
if: ${{ github.repository == 'opengisch/QField' }}
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.FAIRY_TOKEN }}
- name: Install Requirements
run: |
sudo apt-get install -y qttools5-dev-tools
# v1.6.5: 2023-02-16
curl -OL https://github.com/transifex/cli/releases/download/v1.6.5/tx-linux-amd64.tar.gz
tar -xvzf tx-linux-amd64.tar.gz
- name: 🌍 Pull Translations
shell: bash
env:
tx_token: ${{ secrets.TX_TOKEN }}
run: |
TX_TOKEN=$tx_token ./scripts/ci/pull_translations.sh
- uses: EndBug/add-and-commit@v9
with:
message: Synchronize translations
author_name: Translation update 💬
author_email: info@opengis.ch
add: '["platform", "i18n"]'