Skip to content

Main actions

Main actions #770

Workflow file for this run

name: Main actions
on:
workflow_dispatch:
schedule:
- cron: "0 7 * * *"
jobs:
pull-redfin:
name: Summarize Redfin
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.9
mamba-version: "*"
channels: conda-forge,defaults
channel-priority: true
activate-environment: yellowtail
environment-file: envs/env.yml
miniforge-variant: Mambaforge
use-mamba: true
- name: Download Redfin snapshot
shell: bash -l {0}
run: |
conda info
conda list
conda config --show-sources
conda config --show
python -m pip install -e .
python scripts/pull_redfin.py
- name: Summarize Redfin snapshot
shell: bash -l {0}
run: |
python scripts/summarize.py --incremental
- name: Commit files
shell: bash
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add output/listings.csv.gz
git add output/per_day_summary.csv
git commit --allow-empty -m "Update output (GHA)"
- name: Push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main