blob: 5087f58ac0714f273fe3344fcff786825c274bf0 (
plain)
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
|
name: "Update translations"
on:
workflow_dispatch:
schedule:
- cron: "0 3 * * *"
defaults:
run:
shell: pwsh
jobs:
update-translations:
runs-on: ubuntu-latest
env:
TX_TOKEN: ${{ secrets.TX_TOKEN }}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
ref: "2.10"
- name: l10n-read
run: bash .github/workflows/run-in-docker.sh rabits/qt:5.12-desktop "cd translations && make l10n-read"
- name: l10n-push
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
run: bash .github/workflows/run-in-docker.sh owncloudci/transifex:latest "cd translations && make l10n-push"
- name: l10n-pull
run: bash .github/workflows/run-in-docker.sh owncloudci/transifex:latest "cd translations && make l10n-pull"
- name: l10n-write
run: bash .github/workflows/run-in-docker.sh owncloudci/transifex:latest "cd translations && make l10n-write"
- name: l10n-clean
run: bash .github/workflows/run-in-docker.sh owncloudci/transifex:latest "cd translations && make l10n-clean"
- name: update-repo-before-commit
run: |
git status
git stash
git pull --ff-only origin
- name: commit and push
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
run: |
if(git stash list) {
git stash pop
install -d -m 0700 ~/.ssh
Set-Content -Value "${{ secrets.DEPLOYMENT_SSH_KEY }}" -Path ~/.ssh/id_ed25519
chmod 0600 ~/.ssh/id_ed25519
git config user.name "ownClouders"
git config user.email "devops@owncloud.com"
git add translations/
git commit -m "[tx] updated client translations from transifex [skip ci]"
git push git@github.com:owncloud/client.git
}
|