-
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (34 loc) · 1 KB
/
update_db.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
name: Update Json Database
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '00 11,22 * * *'
workflow_dispatch:
push:
branches:
- master
jobs:
scrap_and_commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: dev
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install Tools
run: |
python -m pip install build wheel
sudo pip install youtube_archivist==0.0.3
sudo pip install git+https://github.com/felipeucelli/pytube
- name: Run webscrap script
run: |
sudo python scripts/update_jsondb.py
- name: Commit to dev
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update cached json database
branch: dev