Skip to content

Explain construction of variables in dashboard #7

Explain construction of variables in dashboard

Explain construction of variables in dashboard #7

Workflow file for this run

# Workflow for updating graphs with FRED data
name: Update business cycle dashboard
on:
push:
branches: [ main ]
schedule:
- cron: '30 14 * * *' # Daily at 14:30 UTC (10:30 EST)
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: pip install pandas plotly fredapi python-dotenv
- name: Run graph generation script
env:
FRED_API_KEY: ${{ secrets.FRED_API_KEY }}
run: python content/dashboard/dashboard.py
- name: Commit and push updated charts
run: |
git config user.name "github-actions"
git config user.email "github-actions@github.com"
git add static/dashboard/*.html
git commit -m "Update business cycle dashboard [skip ci]" || echo "No changes"
git push