reset #2
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: reset | |
on: | |
workflow_dispatch: | |
jobs: | |
update: | |
name: reset database | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
cache: 'pip' | |
cache-dependency-path: requirements.txt | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Reset database and set inital recommendations | |
run: | | |
python reset_database.py | |
python update_database.py | |
env: | |
POSTGRES_USER: "${{ secrets.POSTGRES_USER }}" | |
POSTGRES_PASSWORD: "${{ secrets.POSTGRES_PASSWORD }}" | |
POSTGRES_HOST: "${{ secrets.POSTGRES_HOST }}" | |
POSTGRES_DB: "${{ secrets.POSTGRES_DB }}" |