Skip to content

Update Database

Update Database #527

Workflow file for this run

name: Update Database
on:
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '30 5 * * *'
jobs:
deploy:
environment:
name: deploy
runs-on: ubuntu-latest
if: (github.repository == 'ManimCommunity/manim-website-api')
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: |
pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'poetry'
- name: Install dependencies
run: |
poetry install
- name: Run the updator
env:
SQLALCHEMY_DATABASE_URI: ${{ secrets.SQLALCHEMY_DATABASE_URI }}
run: |
poetry run python -m updator