-
Notifications
You must be signed in to change notification settings - Fork 14
156 lines (119 loc) · 4.16 KB
/
main.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
name: GetDataBase Execute Every Day .
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '30 0 * * *'
repository_dispatch:
types:
- GetDataBase
# watch:
# types: [started]
jobs:
Crawler:
name: Crawler
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: 'Set up Python'
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: 'Install requirements'
run: |
pip install -r ./requirements.txt
- name: Import GPG Key
uses: crazy-max/ghaction-import-gpg@v1
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
- name: "GIT CONFIG SETUP"
run: |
git config --local user.email "admin@icodeq.com"
git config --local user.name "Zkeq"
git config --global user.signingkey 8AA837492A2A4853D73A6B4FE51708AB7BACA4A9
git config --global commit.gpgsign true
- name: 'CRAWLER zh-CN BING DATABASE'
env:
PASSWORD: ${{ secrets.PASSWORD }}
run: python ./ALL.py zh-CN
- name: 'Commit zh-CN CRAWLER files'
run: |
git add .
git commit -m "GitHub Actions Crawler zh-CN at $(date +'%Y-%m-%d %H:%M:%S')"
- name: 'CRAWLER en-US BING DATABASE'
env:
PASSWORD: ${{ secrets.PASSWORD }}
run: python ./ALL.py en-US
- name: 'Commit en-US CRAWLER files'
run: |
git add .
git commit -m "GitHub Actions Crawler en-US at $(date +'%Y-%m-%d %H:%M:%S')"
- name: 'CRAWLER ja-JP BING DATABASE'
env:
PASSWORD: ${{ secrets.PASSWORD }}
run: python ./ALL.py ja-JP
- name: 'Commit ja-JP CRAWLER files'
run: |
git add .
git commit -m "GitHub Actions Crawler ja-JP at $(date +'%Y-%m-%d %H:%M:%S')"
- name: 'CRAWLER de-DE BING DATABASE'
env:
PASSWORD: ${{ secrets.PASSWORD }}
run: python ./ALL.py de-DE
- name: 'Commit de-DE CRAWLER files'
run: |
git add .
git commit -m "GitHub Actions Crawler de-DE at $(date +'%Y-%m-%d %H:%M:%S')"
- name: 'CRAWLER en-CA BING DATABASE'
env:
PASSWORD: ${{ secrets.PASSWORD }}
run: python ./ALL.py en-CA
- name: 'Commit en-CA CRAWLER files'
run: |
git add .
git commit -m "GitHub Actions Crawler en-CA at $(date +'%Y-%m-%d %H:%M:%S')"
- name: 'CRAWLER en-GB BING DATABASE'
env:
PASSWORD: ${{ secrets.PASSWORD }}
run: python ./ALL.py en-GB
- name: 'Commit en-GB CRAWLER files'
run: |
git add .
git commit -m "GitHub Actions Crawler en-GB at $(date +'%Y-%m-%d %H:%M:%S')"
- name: 'CRAWLER en-IN BING DATABASE'
env:
PASSWORD: ${{ secrets.PASSWORD }}
run: python ./ALL.py en-IN
- name: 'Commit en-IN CRAWLER files'
run: |
git add .
git commit -m "GitHub Actions Crawler en-IN at $(date +'%Y-%m-%d %H:%M:%S')"
- name: 'CRAWLER fr-FR BING DATABASE'
env:
PASSWORD: ${{ secrets.PASSWORD }}
run: python ./ALL.py fr-FR
- name: 'Commit fr-FR CRAWLER files'
run: |
git add .
git commit -m "GitHub Actions Crawler fr-FR at $(date +'%Y-%m-%d %H:%M:%S')"
- name: 'CRAWLER it-IT BING DATABASE'
env:
PASSWORD: ${{ secrets.PASSWORD }}
run: python ./ALL.py it-IT
- name: 'Commit it-IT CRAWLER files'
run: |
git add .
git commit -m "GitHub Actions Crawler it-IT at $(date +'%Y-%m-%d %H:%M:%S')"
- name: "MAKE readme.md file"
run: python ./make_readme.py
- name: Commit readme.md files
run: |
git add .
git commit -m "GitHub Actions MAKE README.md at $(date +'%Y-%m-%d %H:%M:%S')"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.MY_GIT_TOKEN }}
branch: main