Skip to content

Commit 5444664

Browse files
authored
enhancement(ci): sync translations (#387)
1 parent 2bef403 commit 5444664

File tree

2 files changed

+44
-61
lines changed

2 files changed

+44
-61
lines changed

.github/workflows/translate.yml

Lines changed: 0 additions & 61 deletions
This file was deleted.

.woodpecker/translation.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
when:
3+
- event: cron
4+
cron: translation-sync
5+
6+
variables:
7+
- &ubuntu_image 'ubuntu'
8+
- &git_action_plugin 'quay.io/thegeeklab/wp-git-action:2'
9+
10+
steps:
11+
- name: translation-update
12+
image: *ubuntu_image
13+
commands:
14+
- apt update
15+
- ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime
16+
- apt install -y qt6-l10n-tools git curl
17+
- rm translations/*.ts
18+
- git checkout translations/desktop_en.ts
19+
- /usr/lib/qt6/bin/lupdate src -no-obsolete -ts translations/desktop_en.ts
20+
- curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
21+
- . ~/.profile
22+
- tx push -s
23+
- rm -rf /tmp/tx
24+
- tx pull --force --all
25+
- rm tx LICENSE
26+
environment:
27+
TX_TOKEN:
28+
from_secret: tx_token
29+
30+
- name: translation-push
31+
image: *git_action_plugin
32+
settings:
33+
action:
34+
- commit
35+
- push
36+
author_email: devops@opencloud.eu
37+
author_name: opencloudeu
38+
branch: ${CI_REPO_DEFAULT_BRANCH}
39+
empty_commit: false
40+
message: '[tx] updated from transifex'
41+
netrc_password:
42+
from_secret: github_token
43+
netrc_username:
44+
from_secret: github_username

0 commit comments

Comments
 (0)