forked from MycroftAI/skill-naptime
-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (51 loc) · 1.49 KB
/
auto_translate.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
41
42
43
44
45
46
47
48
49
50
51
52
name: Auto translate
on:
workflow_dispatch:
push:
branches:
- dev
jobs:
translate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: dev
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install Translate Tools
run: |
python -m pip install git+https://github.com/NeonGeckoCom/neon-lang-plugin-google_translate
- name: Auto Translate
run: |
python scripts/translate.py
- name: Commit to dev
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Auto Translate
branch: dev
prepare_skillstore:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: dev
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install OSM
run: |
pip install ovos-skills-manager~=0.0.10
- name: Update Skill Store metadata
run: |
python scripts/prepare_skillstore.py
- name: Commit to dev
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update skill store metadata
branch: dev