-
Notifications
You must be signed in to change notification settings - Fork 2
39 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
name: get core translations
on:
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: Access cloned repository content
run: |
pwd
cd core/core/i18n
ls -la
- uses: actions/checkout@v4
with:
path: 'translations'
- name: Compile all translations prompts
run: |
pwd
ls -la
python translations/.github/workflows/compile_translations.py --source core/core/i18n --destination $GITHUB_WORKSPACE/translations
- name: "commit change"
run: |
cd $GITHUB_WORKSPACE/translations
git config user.name github-actions
git config user.email github-actions@github.com
git diff --quiet || (git add *.json && git commit -m 'update translations')
git push