Update Leaderboard Screenshot #5
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 Leaderboard Screenshot | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 3 * * *" | |
| permissions: | |
| contents: write | |
| jobs: | |
| screenshot: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| - name: Install Playwright | |
| run: | | |
| npm install --no-save playwright | |
| npx playwright install --with-deps chromium | |
| - name: Capture leaderboard screenshot | |
| run: node scripts/capture_leaderboard_screenshot.mjs | |
| - name: Commit changes | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add assets/leaderboard.png | |
| git diff --cached --quiet && exit 0 | |
| git commit -m "chore: update leaderboard screenshot" | |
| git push |