name: update-finance-yahoo-data # every US trading day, shortly after the 16:00 ET close on: schedule: - cron: "0 22 * * 1-5" workflow_dispatch: jobs: ingest: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: lfs: true - uses: actions/setup-python@v5 with: python-version: "3.12" - run: pip install polars deltalake httpx huggingface_hub - name: Fetch + append (PIT, append-only) run: python ingest.py --since "$(date -u -d '14 days ago' +%F)" - name: Push updated bundle env: HF_TOKEN: ${{ secrets.HF_TOKEN }} run: | huggingface-cli upload --repo-type dataset \ ZipLime/finance-yahoo-data data/ data/ --token "$HF_TOKEN"