Skip to content

Reset database

Reset database #184

name: Reset database
on:
schedule:
- cron: "0 0 * * *"
jobs:
reset-db:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Enable corepack
run: corepack enable
- name: Install dependencies
run: pnpm install
- name: Reset database
env:
POSTGRES_PRISMA_URL: ${{ secrets.POSTGRES_PRISMA_URL }}
POSTGRES_URL_NON_POOLING: ${{ secrets.POSTGRES_URL_NON_POOLING }}
run: pnpm reset-database