-
-
Notifications
You must be signed in to change notification settings - Fork 55
41 lines (37 loc) · 1.05 KB
/
docs.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
name: Docs
on:
push:
branches: [main]
paths:
- "doc/**"
- "**.md"
jobs:
automatic-update:
if: github.repository_owner == 'erg-lang'
runs-on: ubuntu-latest
defaults:
run:
working-directory: doc
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- run: pip install tqdm
- uses: erg-lang/[email protected]
- run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: update summary
run: |
python scripts/sync_to_summary.py
git add .
git diff-index --quiet HEAD || git commit -m "Automatic update \`SUMMARY.md\`"
- name: update translation_status
run: |
erg --version
erg scripts/sync_to_translation_status.er
git add .
git diff-index --quiet HEAD || git commit -m "Automatic update \`translation_status\`"
- run: |
git push