Skip to content

Update JSON

Update JSON #26144

Workflow file for this run

name: Update JSON
on:
schedule:
- cron: "0 * * * *"
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.GIT_ACCESS_TOKEN }}
- name: Create local changes
run: |
rm -rf venv
python3 -m venv venv
source venv/bin/activate
pip install -r scraper/requirements.txt
python scraper/src/meta.py
python scraper/src/pmu.py
python scraper/src/donors.py
python scraper/src/hospitals.py
python scraper/src/associate.py
python scraper/src/status.py
- name: Commit files
run: |
git config --local user.email "matthewzalex@gmail.com"
git config --local user.name "github-actions[bot]"
git add .
git diff --staged --quiet || git commit -am "🌍 Update JSON - $(date -d '+5 hours +30 minutes' +'%d %b %Y | %I:%M %p')"
git push