Skip to content

Update Haiti/Venezuela Data #3292

Update Haiti/Venezuela Data

Update Haiti/Venezuela Data #3292

name: Update Haiti/Venezuela Data
on:
schedule:
- cron: "0 5,7 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: "3.7"
- name: Install Python dependencies
run: pip install -r requirements.txt
- name: Fetch new data
run: |
python data/haiti-data/crawler.py ${{ secrets.HAITI_DATA_TOKEN }}
python data/venezuela-data/crawler.py
- name: Commit data files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git status
git add .
git commit -m "Update Haiti/Venezuela Data" || echo "Nothing to commit"
- name: Push changes
uses: ad-m/github-push-action@master
with:
repository: stevenliuyi/covid19
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: master