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 5440242 commit a1e01ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/generate-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest
env:
PROJECT_ID: ${{ secrets.PROJECT_REF }}
steps:
- uses: supabase/setup-cli@v1
with:
Expand All @@ -13,7 +15,7 @@ jobs:
- run: supabase db start
- name: Verify generated types match Postgres schema
run: |
supabase gen types typescript --project-id ${{ secrets.PROJECT_REF }} --schema public > database.types.ts
supabase gen types typescript --project-id $PROJECT_ID --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
Expand Down

0 comments on commit a1e01ea

Please sign in to comment.