Skip to content

Reset database

Reset database #159

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: yarn install
- name: Reset database
env:
POSTGRES_PRISMA_URL: ${{ secrets.POSTGRES_PRISMA_URL }}
POSTGRES_URL_NON_POOLING: ${{ secrets.POSTGRES_URL_NON_POOLING }}
run: yarn reset-database