Rescrape #14
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: Rescrape | |
on: | |
schedule: | |
- cron: '0 8 * * SAT' | |
workflow_dispatch: | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
cache: 'pip' | |
- run: pip install -r requirements.txt | |
- name: Rescrape | |
run: | | |
python apracticalguidetoevil.py | |
- uses: docker://pandoc/core:2.9 | |
with: | |
args: -o "Pale Lights.epub" "Pale Lights.md" | |
- uses: docker://pandoc/core:2.9 | |
with: | |
args: -o "A Practical Guide to Evil.epub" "A Practical Guide to Evil.md" | |
- name: Commit & Push Changes | |
run: | | |
git config user.name github-actions[bot] | |
git config user.email github-actions[bot]@users.noreply.github.com | |
git commit -am "[Automated]: Update books" | |
git push |