Auto generate readme (#100)

* Auto generate readme provided by @KinglittleQ
This commit is contained in:
Chengqi Deng
2021-12-04 07:48:04 +08:00
committed by GitHub
parent c72f2796c0
commit 1343f5eeef
8 changed files with 168 additions and 24 deletions

23
.github/workflows/main.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: auto-generate-readme
on:
push:
jobs:
auto-generate-readme:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Install Python3
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Update README
run: python auto-generate-readme.py
- name: Commit
run: |
git config --global user.name 'Github Action Bot'
git config --global user.email 'bot@example.com'
git add -u .
git commit -m 'Update README' || echo "No changes to commit"
git push origin || echo "No changes to push"