-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmkdocs.yml
More file actions
38 lines (34 loc) · 999 Bytes
/
mkdocs.yml
File metadata and controls
38 lines (34 loc) · 999 Bytes
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: Auto Translate Docs
on:
push:
paths:
- 'docs/en/**/*.md'
- 'docs/it/**/*.md'
jobs:
translate:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Detect changed files
id: changes
uses: tj-actions/changed-files@v44
with:
files: |
docs/en/**/*.md
docs/it/**/*.md
- name: Translate EN → IT
if: contains(steps.changes.outputs.all_changed_files, 'docs/en/')
run: |
python scripts/translate.py en it
- name: Translate IT → EN
if: contains(steps.changes.outputs.all_changed_files, 'docs/it/')
run: |
python scripts/translate.py it en
- name: Commit & Push translations
run: |
git config user.name "roundtable-bot"
git config user.email "bot@roundtable.org"
git add docs/
git commit -m "Auto-translate updated docs"
git push