scrape, generate and push #30931
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |