Repository navigation
Sync Member Stats #37
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: Sync Member Stats | |
| on: | |
| schedule: | |
| # Runs at 00:00 and 12:00 UTC every day | |
| - cron: "0 0,12 * * *" | |
| # Allows manual trigger from the GitHub Actions UI | |
| workflow_dispatch: | |
| jobs: | |
| sync: | |
| name: Run Stats Sync | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| cache: "pip" | |
| cache-dependency-path: scripts/requirements.txt | |
| - name: Install Dependencies | |
| run: pip install -r scripts/requirements.txt | |
| - name: Run Stats Sync Script | |
| env: | |
| SUPABASE_URL: ${{ secrets.SUPABASE_URL }} | |
| SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }} | |
| LEADERBOARD_GH_PAT: ${{ secrets.LEADERBOARD_GH_PAT }} | |
| run: python scripts/main.py |