-
Notifications
You must be signed in to change notification settings - Fork 668
61 lines (48 loc) · 1.34 KB
/
translate.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: "Update translations"
on:
workflow_dispatch:
schedule:
- cron: "0 3 * * *"
permissions: {}
defaults:
run:
shell: pwsh
jobs:
update-translations:
permissions:
# for git push
contents: write
runs-on: ubuntu-latest
env:
TX_TOKEN: ${{ secrets.TX_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.DEPLOYMENT_SSH_KEY }}
submodules: recursive
ref: "master"
- name: install-deps
run: sudo apt install -y qt6-l10n-tools
- name: l10n-remove-old
run: |
rm translations/*.ts
git checkout translations/client_en.ts
- name: l10n-read
run: /usr/lib/qt6/bin/lupdate src -no-obsolete -ts translations/client_en.ts
- name: l10n-push-source
uses: transifex/cli-action@v2
with:
token: ${{ secrets.TX_TOKEN }}
args: push -s --silent
- name: fix-transifex-action
run: rm -rf /tmp/tx
- name: l10n-pull
uses: transifex/cli-action@v2
with:
token: ${{ secrets.TX_TOKEN }}
args: pull --force --all --silent
- uses: GuillaumeFalourd/[email protected]
with:
email: [email protected]
name: ownClouders
commit_message: "[tx] updated translations from transifex"