Files
tudien/.github/workflows/create_inflections.yml.backup
T
2026-10-02 22:54:53 +08:00

57 lines
1.3 KiB
Plaintext

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 catusf@users.noreply.github.com
git branch --show-current
git add .
git status
git commit -m "[AUTO] Create inflections"
git fetch
git push origin --force
fi