Update match results from PandaScore to Supabase #2451
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 match results from PandaScore to Supabase | |
| on: | |
| schedule: | |
| - cron: '*/15 * * * *' # toutes les 15 minutes | |
| workflow_dispatch: # permet de lancer manuellement | |
| jobs: | |
| update_scores: | |
| runs-on: ubuntu-latest | |
| env: | |
| PANDASCORE_TOKEN: ${{ secrets.PANDASCORE_TOKEN }} | |
| SUPABASE_URL: ${{ secrets.SUPABASE_URL }} | |
| SUPABASE_API_KEY: ${{ secrets.SUPABASE_API_KEY }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Install dependencies | |
| run: pip install -r requirements.txt | |
| - name: Run update script | |
| run: python update_scores.py |