Merge pull request #367 from toddlerer/add-sync_to_translation_status.er

This commit is contained in:
Shunsuke Shibayama 2023-02-02 12:33:07 +09:00 committed by GitHub
commit db7e46b02f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 913 additions and 62 deletions

View file

@ -2,12 +2,11 @@ name: Docs
on:
push:
branches: [main]
paths:
- "doc/**"
jobs:
update-summary:
automatic-update:
runs-on: ubuntu-latest
defaults:
run:
@ -17,11 +16,22 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- run: |
python sync_to_summary.py
- 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