Daily database cleanup #641
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: Daily database cleanup | |
on: | |
schedule: | |
- cron: "0 6 * * *" | |
jobs: | |
clean: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./packages/scripts | |
env: | |
DATABASE_URL: "${{ secrets.DATABASE_URL }}" | |
ENCRYPTION_SECRET: "${{ secrets.ENCRYPTION_SECRET }}" | |
NEXTAUTH_URL: "http://localhost:3000" | |
NEXT_PUBLIC_VIEWER_URL: "http://localhost:3001" | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: oven-sh/setup-bun@v2 | |
- run: bun install | |
- run: bunx turbo run db:cleanDatabase |