-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (36 loc) · 1.03 KB
/
translate-readme.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
42
43
name: Translate Readme
on:
push:
branches: ['**']
jobs:
translate:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 5
token: ${{ secrets.Action_Bot }}
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: Install dependencies
run: |
pip install googletrans==4.0.0-rc1
sudo apt-get update
sudo apt-get install -y translate-shell
- name: Translate README
working-directory: .
run: |
bash translation.sh
- name: GIT Commit
env:
CI_COMMIT_MESSAGE: Continuous Integration Build Artifacts
CI_COMMIT_AUTHOR: Continuous Integration
working-directory: .
run: |
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "username@users.noreply.github.com"
chmod +x commit.sh
./commit.sh