-
Notifications
You must be signed in to change notification settings - Fork 0
/
update.yml.old
39 lines (31 loc) · 895 Bytes
/
update.yml.old
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
name: "Update"
on:
push:
branches:
- main
schedule:
- cron: "30 17 * * *"
jobs:
update_data:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests wiki_data_dump networkx tqdm numpy pandas
- name: Clone utilities
run: |
git clone https://github.com/jon-edward/wiki_categories.git
- name: Run data collection, saving
run: |
python ./main.py
- name: Push changes
run: |
git config --global user.name "jon-edward"
git config --global user.email "[email protected]"
git add ./data
git commit -m "Automated data deployment"
git push