Create auto-gen.yml

This commit is contained in:
komeil Parseh 2023-01-24 22:18:30 +03:30 committed by GitHub
parent a58f9eb369
commit 47425751a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

33
.github/workflows/auto-gen.yml vendored Normal file
View file

@ -0,0 +1,33 @@
name: Auto-gen
on:
push:
branches:
- main
paths:
- '*.tar.zst'
- 'auto-gen.py'
pull_request:
branches:
- main
paths:
- '*.tar.zst'
- 'auto_gen.py'
jobs:
add-actions:
name: gen-readme
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.10"
- run: git config --global user.name "readme-gen"
- run: git config --global user.email "<>"
- run: python auto-gen.py
- run: git add -A
- run: git commit -m "auto generate README.md" || echo "nothing to commit, working tree clean"; exit 0
- run: git push