blob: 2300c03b04029cbbca1db29db9d9d236adf4b574 (
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
|
name: localization
#always run on the default branch: master
on:
schedule:
- cron: '24 02 * * *'
push:
branches:
- master
paths:
- 'ime/app/src/main/res/values/strings.xml'
env:
TERM: dumb
CROWDIN_API: ${{ secrets.CROWDIN_API }}
TMPDIR: "/tmp"
jobs:
localization-update:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.BOT_MASTER_RW_GITHUB_TOKEN }}
- name: Upload strings from ime/app master
run: ./scripts/upload_strings_to_crowdin_api.sh keep
- name: Download latest translations
run: ./scripts/update_strings_from_crowdin_api.sh build
- name: Create pull request
uses: peter-evans/create-pull-request@v2.4.4
with:
token: ${{ secrets.BOT_MASTER_RW_GITHUB_TOKEN }}
commit-message: 'Automated Localization Update from crowdin'
title: 'Automated Localization Update from crowdin'
committer: 'Polyglot <ask@evendanan.net>'
author: 'Polyglot <ask@evendanan.net>'
body: 'Generated from latest _master_ strings and crowdin data.'
team-reviewers: add-on-maintainers
branch: 'bot-pr/localization-update'
labels: automerge
|