Skip to content

Update Leads

Update Leads #279

Workflow file for this run

name: Update Leads
on:
workflow_dispatch:
schedule:
- cron: '0 1 * * *'
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setting up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install requirements
run: pip install -r requirements.txt
- name: Run
run: |
python downloader/worldranking_downloader.py
python cleanup.py --input tmp/leads
python taf.py --input tmp/leads/country/senior/ger/ --output leads/senior/germany.csv --mapping worldathletics_ranking --ageGroup senior
python taf.py --input tmp/leads/world/senior --output leads/senior/world.csv --mapping worldathletics_ranking --ageGroup senior
python taf.py --input tmp/leads/area/senior --output leads/senior/area.csv --mapping worldathletics_ranking --ageGroup senior
python taf.py --input tmp/leads/country/u20/ger/ --output leads/u20/germany.csv --ageGroup JU20 --mapping worldathletics_ranking
python taf.py --input tmp/leads/world/u20 --output leads/u20/world.csv --ageGroup JU20 --mapping worldathletics_ranking
python taf.py --input tmp/leads/area/u20 --output leads/u20/area.csv --ageGroup JU20 --mapping worldathletics_ranking
git config user.name Github Action
git config user.email [email protected]
git add leads/*
timestamp=$(date -u)
git commit -m "update leads data: ${timestamp}" || exit 0
git push