Update Database #612
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: 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@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
# Install a specific version of uv. | |
version: "0.5.26" | |
enable-cache: true | |
- uses: actions/setup-python@v5 | |
with: | |
python-version-file: ".python-version" | |
- name: Install dependencies | |
run: | | |
uv sync --all-extras --locked | |
- name: Run the updator | |
env: | |
SQLALCHEMY_DATABASE_URI: ${{ secrets.SQLALCHEMY_DATABASE_URI }} | |
run: | | |
uv run python -m updator |