mirror: 初始快照
This commit is contained in:
commit
fae8c948cd
319 files changed
+5217599
No files matched your search
@@ -0,0 +1,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 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
|
||||
Reference in new issue
Block a user