Create auto-gen.yml
This commit is contained in:
parent
a58f9eb369
commit
47425751a9
1 changed files with 33 additions and 0 deletions
33
.github/workflows/auto-gen.yml
vendored
Normal file
33
.github/workflows/auto-gen.yml
vendored
Normal 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
|
Loading…
Add table
Reference in a new issue