-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (45 loc) · 1.31 KB
/
update.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: 'Updating English texts and README'
# -- Extract the English texts to the locale/translation.js
# -- Update all the .po files
# -- UPdate the README.md file
# Controls when the action will run.
on:
# Manual activation
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ develop ]
# Only one Job
jobs:
#-- Update the English texts
update:
runs-on: ubuntu-20.04
steps:
- name: Checkout sources
uses: actions/checkout@v2
with:
ref: main
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
sudo apt-get install gettext
pip install icm click colorama polib semantic_version
icm --version
- name: Execute the update script
run: bash update.sh
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action test"
git add *
git commit -m "Automatic English texts updated"
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: main
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true