Reset database #159
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 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 |