covidTracker #94451
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: covidTracker | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: "*/15 * * * *" | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🍽️ Get working copy | |
uses: actions/checkout@master | |
with: | |
fetch-depth: 1 | |
- name: 🐍 Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.8" | |
- name: 💿 Install Requirements | |
run: pip install -r requirements.txt | |
- name: 🍳 Update dataset | |
run: python app.py | |
- name: 🚀 Commit and push if it changed | |
run: | | |
git config user.name "${GITHUB_ACTOR}" | |
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | |
git add -A | |
timestamp=$(date -u) | |
git commit -m "Latest data: ${timestamp}" || exit 0 | |
git push |