Readme automation #1101
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Readme automation | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "55 17 */3 * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: update | |
uses: actions/setup-python@v2 | |
- name: Git Config | |
run: | | |
git config --global user.email ${{ secrets.ACTION_MAIL }} | |
git config --global user.name ${{ secrets.ACTION_NAME }} | |
- name: Install Libraries | |
run: | | |
python -m pip install --upgrade pip | |
pip install markdown2 | |
- name: 1. Generate Data | |
run: | | |
python3 generate_data.py | |
- name: 2. Generate static site | |
run: | | |
python3 generate_site.py | |
- name: 3. Update Readme.md | |
run: | | |
python3 README_automation.py | |
- name: Commit & Push to GitHub | |
run: | | |
git config user.name github-actions | |
git config user.email github-actions@github.com | |
git add -A . | |
git commit -m "Automated Commit 🤖" | |
git push |