📝 Update README.md #6
This file contains hidden or 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 stats image | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'README.md' | |
| permissions: | |
| contents: write | |
| jobs: | |
| update-stats: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v4 | |
| - name: Install Playwright browsers | |
| run: uv run --with playwright python -m playwright install --with-deps chromium | |
| - name: Generate stats screenshot | |
| run: uv run .github/readme_talk_stats.py --screenshot .github/stats.png | |
| - name: Commit updated image | |
| run: | | |
| git diff --quiet .github/stats.png && exit 0 | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add .github/stats.png | |
| git commit -m "Update stats image" | |
| git push |