Skip to content

Update FRED yields

Update FRED yields #69

Workflow file for this run

name: Update FRED yields
on:
schedule:
# 22:00 UTC daily ≈ 17:00 ET (after Treasury CMT and ICE BofA spreads post for the day).
- cron: "0 22 * * 1-5"
workflow_dispatch: # lets you trigger it manually from the Actions tab
jobs:
update:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install dependencies
run: pip install -r scripts/requirements-update.txt
- name: Run update
env:
FRED_API_KEY: ${{ secrets.FRED_API_KEY }}
R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}
R2_ACCESS_KEY: ${{ secrets.R2_ACCESS_KEY }}
R2_SECRET_KEY: ${{ secrets.R2_SECRET_KEY }}
run: python scripts/update_fred.py