Skip to content

Scrape

Scrape #5129

Workflow file for this run

name: Scrape
on:
schedule:
- cron: '0 15 * * *'
workflow_dispatch:
jobs:
update:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install pipenv
run: pipx install pipenv
- uses: actions/setup-python@v2
with:
python-version: '3.9'
cache: 'pipenv'
- id: pipenv-install
name: Install Python dependencies
run: pipenv install --dev --python `which python`
- id: download
name: Download
run: pipenv run python src/download.py
- id: commit
name: Commit
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "actions@github.com"
git config pull.rebase false
git status
git pull origin $GITHUB_REF
git add ./
git commit -m "data update" && git push || true
shell: bash
- id: archive
name: Archive to biglocalnews.org
uses: biglocalnews/upload-files@main
with:
api-key: ${{ secrets.BLN_API_KEY }}
project-id: ${{ secrets.BLN_PROJECT_ID }}
path: data/iowa-liquor-stores.csv