From 5462a1be6a9d451ce86e2f71761ca8bfea448209 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Wed, 11 Jan 2023 11:15:15 +0100 Subject: [PATCH] :green_heart: Fix clean database script Need to generate db schema first --- .github/workflows/clean-database.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/clean-database.yml b/.github/workflows/clean-database.yml index bfd884c51..a722a0db0 100644 --- a/.github/workflows/clean-database.yml +++ b/.github/workflows/clean-database.yml @@ -5,7 +5,7 @@ on: - cron: '0 6 * * *' jobs: - publish: + clean: runs-on: ubuntu-latest defaults: run: @@ -16,4 +16,5 @@ jobs: - uses: actions/checkout@v2 - uses: pnpm/action-setup@v2.2.2 - run: pnpm i --frozen-lockfile + - run: cd ../db && pnpm db:generate && cd ../scripts - run: pnpm db:cleanDatabase