Skip to content

Instantly share code, notes, and snippets.

View raulmelo's full-sized avatar

Raul melo raulmelo

View GitHub Profile
SELECT 'SELECT SETVAL(' ||
quote_literal(quote_ident(PGT.schemaname) || '.' || quote_ident(S.relname)) ||
', COALESCE(MAX(' ||quote_ident(C.attname)|| '), 1) ) FROM ' ||
quote_ident(PGT.schemaname)|| '.'||quote_ident(T.relname)|| ';'
FROM pg_class AS S,
pg_depend AS D,
pg_class AS T,
pg_attribute AS C,
pg_tables AS PGT
WHERE S.relkind = 'S'
name: Deploy to Expo
on:
push:
branches:
- main
- release/*
jobs:
build-and-deploy:
runs-on: ubuntu-latest