Skip to content

Update Kings Cross Dashboard #2477

Update Kings Cross Dashboard

Update Kings Cross Dashboard #2477

name: Update Kings Cross Dashboard
on:
schedule:
- cron: "0 * * * *" # hourly
workflow_dispatch:
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-latest
env:
OPENWEATHER_KEY: ${{ secrets.OPENWEATHER_KEY }}
TFL_APP_KEY: ${{ secrets.TFL_APP_KEY }}
EVENTBRITE_TOKEN: ${{ secrets.EVENTBRITE_TOKEN }}
GOOGLE_PLACES_API_KEY: ${{ secrets.GOOGLE_PLACES_API_KEY }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
persist-credentials: true
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests pandas
- name: Run pipeline
run: |
python scripts/update_pipeline.py
- name: Generate seasonal insights
run: |
python scripts/generate_seasonal_insights.py
- name: Commit & push data
run: |
git config user.name "github-actions[bot]"
git config user.email "actions@github.com"
git add data || true
git commit -m "auto: update dashboard data" || echo "No changes"
git push || true