mirror of
https://github.com/erg-lang/erg.git
synced 2025-12-23 05:36:48 +00:00
37 lines
963 B
YAML
37 lines
963 B
YAML
name: Docs
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- "doc/**"
|
|
|
|
jobs:
|
|
automatic-update:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: doc
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: "3.11"
|
|
- uses: erg-lang/setup-erg@v2.1
|
|
- 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
|