targetting the readme #49
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: Update Documentation.md | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
update_docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.12.1 | |
# - name: Install dependencies | |
# run: | | |
# python -m pip install --upgrade pip | |
# pip install -r REQUIREMENTS.txt | |
- name: Run UPDATE_DOC.py | |
run: python UPDATE_DOC.py | |
# removing __pycache__ as it is autogenerate by python after running the above python code. | |
- name: Clean __pycache__ | |
run: rm -rf __pycache__ | |
- name: Commit and push changes | |
run: | | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git add . | |
git commit -m "auto update documentation" | |
git push |