-
Notifications
You must be signed in to change notification settings - Fork 19
33 lines (26 loc) · 844 Bytes
/
update-stats.yml
File metadata and controls
33 lines (26 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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