-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (43 loc) · 1.33 KB
/
daily_run_v2.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
46
# This workflows starts scraping Routescanner and MSC each day at 05:00 UTC,
# using the v2 scrapers, and opens a PR to merge the gathered data.
name: Scrape Routescanner and MSC daily (v2)
on:
#schedule:
# - cron: '0 5 * * *'
push:
paths:
- ".github/workflows/daily_run_v2.yml"
- "webscrapers/routescanner_automated_v2.py"
- "webscrapers/msc_automated_v2.py"
workflow_dispatch:
jobs:
routescanner-v2:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- run: pip install -U pandas requests fake_useragent
- run: python routescanner_automated_v2.py
working-directory: ./webscrapers
- uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: "data_staging"
commit_options: '--signoff'
commit_message: "Add Routescanner v2 data"
msc-v2:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- run: pip install -U pandas requests
- run: python msc_automated_v2.py
working-directory: ./webscrapers
- uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: "data_staging"
commit_options: '--signoff'
commit_message: "Add MSC v2 data"