-
Notifications
You must be signed in to change notification settings - Fork 1
29 lines (29 loc) · 916 Bytes
/
update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Update COVID-19 Data
on:
schedule:
- cron: '*/30 * * * *'
workflow_dispatch:
jobs:
update-data:
name: Update COVID-19 Data
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Script
run: python fetch.py
- name: Commit Changes to Repository
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Data Updated
commit_user_name: github-actions[bot]
commit_user_email: github-actions[bot]@users.noreply.github.com
commit_author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>