-
Notifications
You must be signed in to change notification settings - Fork 1
76 lines (76 loc) · 2.29 KB
/
scrape.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: scrape
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
update-stores:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install_deps
run: |
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade google-auth
- name: scrape_and_commit
run: |
cd scrape
python3 dig.py -update-stores -key '${{secrets.SERVICE_ACCOUNT}}'
scrape-juno:
needs: update-stores
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install_deps
run: |
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade google-auth
- name: scrape_and_commit
run: |
cd scrape
python3 dig.py -store juno -key '${{secrets.SERVICE_ACCOUNT}}' -clear-trackers
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git commit -m "- update juno releases"
git pull --rebase
git push origin HEAD:main
scrape-redeye:
needs: update-stores
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install_deps
run: |
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade google-auth
- name: scrape_and_commit
run: |
cd scrape
python3 dig.py -urls -store redeye -key '${{secrets.SERVICE_ACCOUNT}}' -clear-trackers
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git commit -m "- update redeye releases"
git pull --rebase
git push origin HEAD:main
scrape-yoyaku:
if: false
needs: update-stores
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install_deps
run: |
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade google-auth
- name: scrape_and_commit
run: |
cd scrape
python3 dig.py -urls -store yoyaku -key '${{secrets.SERVICE_ACCOUNT}}' -clear-trackers -verbose -urls
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git commit -m "- update yoyaku releases"
git pull --rebase
git push origin HEAD:main