Update Readme TOC #26
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 Readme TOC | |
on: | |
# push: | |
# branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: install dependencies | |
run: pip install loguru | |
- name: Recreate README.md TOC | |
run: python scripts/update_readme.py | |
- name: Commit files | |
run: | | |
git config --global user.email "fexofenadine@users.noreply.github.com" | |
git config --global user.name "fexofenadine" | |
git add README.md | |
git add tags/* | |
git commit -a -m "Updated TOC" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
force: true |