Skip to content

Commit

Permalink
Update generate-types.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
diliburong authored Mar 7, 2024
1 parent 49a6d0b commit 5440242
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/generate-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
- run: supabase db start
- name: Verify generated types match Postgres schema
run: |
supabase gen types typescript --project-id ${{ secrets.PROJECT_REF }} --schema public > src/renderer/types/database.types.ts
if ! git diff --ignore-space-at-eol --exit-code --quiet src/renderer/types/database.types.ts; then
supabase gen types typescript --project-id ${{ secrets.PROJECT_REF }} --schema public > database.types.ts
if ! git diff --ignore-space-at-eol --exit-code --quiet database.types.ts; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
Expand Down

0 comments on commit 5440242

Please sign in to comment.