mirror of
https://github.com/tuxbox-neutrino/docker-buildenv.git
synced 2025-08-26 13:12:42 +02:00
43 lines
876 B
YAML
43 lines
876 B
YAML
name: Translate README
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- 'README-de.md'
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
translate:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.x
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install --upgrade googletrans==3.1.0a0
|
|
|
|
- name: Translate README
|
|
run: |
|
|
python .github/scripts/translate.py
|
|
|
|
- name: Commit and push translated README
|
|
run: |
|
|
git config --global user.email "actions@github.com"
|
|
git config --global user.name "GitHub Actions"
|
|
git add README-en.md
|
|
git commit -m "readme: Automatically translated README to English"
|
|
git push
|
|
|