-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 1.06 KB
/
pull-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
36
37
38
name: Pull App Translations
on:
schedule:
- cron: "0 */12 * * *"
workflow_dispatch:
jobs:
pull_translations:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Max fetch depth (full history of files)
- name: Install transifex client
run: |
curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
- name: Pull translations
env:
TX_TOKEN: ${{ secrets.TX_TOKEN }}
run: |
./tx pull --all --use-git-timestamps --minimum-perc 100
rm -rf package_build/locale/zh
rm -rf package_build/locale/ja
rm -rf package_build/locale/ko
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
title: Update translation file(s) of the app
commit-message: Update translation file(s) of the app
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
add-paths: package_build/locale/*
delete-branch: true