Skip to content

Update Leads

Update Leads #35

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 worldranking_downloader.py
python taf.py --input tmp/leads/country/ger --output leads/germany.csv
python taf.py --input tmp/leads/world --output leads/world.csv
python taf.py --input tmp/leads/area --output leads/area.csv
git config user.name Github Action
git config user.email [email protected]
git add leads/germany.csv
git add leads/world.csv
git add leads/europe.csv
timestamp=$(date -u)
git commit -m "update leads data: ${timestamp}" || exit 0
git push