-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (34 loc) · 1.03 KB
/
get_core_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
39
40
name: get core translations
on:
schedule:
- cron: "50 5 * * *"
workflow_dispatch:
jobs:
get:
runs-on: ubuntu-latest
steps:
- name: Clone jeedom/core alpha
uses: GuillaumeFalourd/clone-github-repo-action@main
with:
owner: 'jeedom'
repository: 'core'
branch: 'alpha'
depth: 1
- name: list cloned repository content
run: |
ls -la core/core/i18n
- uses: actions/checkout@v4
with:
path: 'translations'
- name: Compile all translations prompts
run: |
python translations/src/compile_core_translations.py --source core/core/i18n --destination $GITHUB_WORKSPACE/translations
- name: "Commit changes"
run: |
cd $GITHUB_WORKSPACE/translations
ls -la
git config user.name github-actions
git config user.email github-actions@github.com
git add *.json
git diff --cached --quiet || git commit -m 'update translations'
git push