Skip to content

Update match results from PandaScore to Supabase #2451

Update match results from PandaScore to Supabase

Update match results from PandaScore to Supabase #2451

Workflow file for this run

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