Skip to content

Update README

Update README #50121

Workflow file for this run

name: Update README
on:
push:
branches:
- main
schedule:
- cron: '0 */3 * * *'
workflow_dispatch:
jobs:
update:
name: Update
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Update README.md
run: python update.py
env:
MYANIMELIST_USERNAME: ${{ secrets.MYANIMELIST_USERNAME }}
- name: Commit and Push
run: |
timestamp=$(date -u)
git diff
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git add -A
git commit -m "${timestamp}" || exit 0
git push