-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (34 loc) · 1005 Bytes
/
refresh.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
name: scrape, generate and push
#on: push
on:
schedule:
- cron: "0 * * * *"
workflow_dispatch:
jobs:
update_data:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Run image
uses: abatilo/[email protected]
# #with:
# poetry-version: ${{ matrix.poetry-version }}
- name: make env - run poetry install
run: make env
- name: scrape trackers and update output
run: make scrape
- name: setup git config
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<[email protected]>"
- name: git st
run: git status
- name: git add
run: git add -f data/ltc.sqlite output/torrent.json output/torrent.html output/stats.html
- name: git commit
run: git commit -m "auto update at $(date)"
- name: git push
run: git push