-
Notifications
You must be signed in to change notification settings - Fork 45
56 lines (54 loc) · 1.87 KB
/
translation_update.yaml
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
name: Update translations
on:
schedule:
- cron: "0 4 * * 1,3,5"
workflow_dispatch:
jobs:
translation_update:
if: ${{ github.ref_name == 'main' }}
name: Update translations from transifex
runs-on: ubuntu-latest
env:
TX_TOKEN: ${{ secrets.TX_TOKEN }}
TX_HOSTNAME: ${{ secrets.TX_HOSTNAME }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v3
with:
python-version: "3.9"
architecture: "x64"
cache: pip
- run: pip install -r requirements-dev.txt
- name: Install transifex CLI
run: curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
- name: Pull updated strings from transifex
run: invoke translate-pull
- name: Push strings to transifex
run: invoke translate-push
- name: Create pull request
id: cpr
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update translations
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: translation-updates
delete-branch: true
title: "Update translations"
body: |
Refresh translations
labels: |
i18n
automated pr
add-paths: |
docs/i18n/**/*.po
docs/source/for_users/downloads/index.md
docs/source/for_developers/changelog.rst
LDMP/i18n/*.ts