-
Notifications
You must be signed in to change notification settings - Fork 96
45 lines (40 loc) · 1.09 KB
/
croatia_data_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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Update Croatia Data
on:
push:
branches:
- master
schedule:
- cron: "30 15,19,21 * * *"
jobs:
build:
runs-on: ubuntu-latest
services:
flaresolverr:
image: ghcr.io/flaresolverr/flaresolverr
ports:
- 8191:8191
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/croatia-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 Croatia 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