Skip to content

Update series periodically or upon manual trigger #839

Update series periodically or upon manual trigger

Update series periodically or upon manual trigger #839

name: Update series periodically or upon manual trigger
on:
workflow_dispatch:
schedule:
- cron: '0 0,12 * * *'
jobs:
update:
name: Update series
runs-on: ubuntu-latest
steps:
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends jq python3-requests
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Checkout twint
uses: actions/checkout@v3
with:
repository: catgirl-v/twint
path: twint
- name: Install twint
run: pip3 install -e .
working-directory: twint
- name: Run update script
env:
TWITTER_AUTH_TOKEN: ${{ secrets.TWITTER_AUTH_TOKEN }}
run: ./update_series.sh
- name: Commit changes
run: |
git config --global user.name 'catgirl-bot'
git config --global user.email '<>'
git add series
git commit -m "Update index (beep boop)" || exit 0
git push