This repository has been archived by the owner on Jul 31, 2024. It is now read-only.
Scrape #5144
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |