name: Update README from Pytudes on: push: paths: - 'py/pytudes.py' jobs: build-and-update: runs-on: ubuntu-latest permissions: contents: write steps: - name: Checkout repository uses: actions/checkout@v7 - name: Set up Python uses: actions/setup-python@v7 - name: Run pytudes.py run: python py/pytudes.py - name: Commit and push if README changed run: | git config --local user.email "github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" git add README.md git commit -m "docs: auto-update README.md via pytudes.py" || exit 0 git push