Skip to content

Split CSV Data

Split CSV Data #88

name: Split CSV Data
on:
schedule:
- cron: '10 5 * * *' # Runs daily at 5:10 UTC
- cron: '15 17 * * *' # Runs daily at 17:15 UTC
workflow_dispatch:
jobs:
split-data:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pandas numpy
- name: Split CSV files
run: python scripts/split_csv_data.py
- name: Commit changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add data/
git commit -m "Split CSV files by gameweek and match_id" || exit 0
git push