-
Notifications
You must be signed in to change notification settings - Fork 15
/
create_inflections.yml.backup
56 lines (45 loc) · 1.29 KB
/
create_inflections.yml.backup
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
name: Create inflections for all dictionaries
on:
workflow_dispatch:
push:
paths-ignore:
- .gitignore
- '*.md'
- LICENSE
jobs:
build:
# Only builds if commit message contains keyword
if: "contains(github.event.head_commit.message, 'INFLECTION')"
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v3
- name: Fetch full Git history (not shallow)
run: |
git fetch --unshallow
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Setup Python packages
run: |
pip install -r ./bin/requirements-inflections.txt
- name: Create all inflections
run: |
python ./bin/create_inflections.py
- name: Upload files to repos
run: |
if [[ -z $(git status -s) ]]
then
echo "Nothing to commit."
else
echo "---------------------------------"
ls
echo "---------------------------------"
git config user.name "catus felis"
git config user.email [email protected]
git branch --show-current
git add .
git status
git commit -m "[AUTO] Create inflections"
git fetch
git push origin --force
fi