Skip to content

Commit

Permalink
Update action.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
mansueli authored Mar 25, 2023
1 parent 49ffa2d commit dffb6de
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ inputs:
required: true

runs:
runs-on: ubuntu-latest
using: "composite"
permissions:
contents: write
steps:
- name: Postgres15
run: |
Expand All @@ -24,7 +21,8 @@ runs:
sudo apt update
sudo apt install postgresql-15 postgresql-client-15 -y
/usr/lib/postgresql/15/bin/pg_dump --clean --if-exists --quote-all-identifiers --schema '*' --exclude-schema 'extensions|graphql|graphql_public|net|pgbouncer|pgsodium|pgsodium_masks|realtime|supabase_functions|storage|pg_*|information_schema' -d postgres://postgres:${{ supabase_url }}@${{ supabase_password }}:6543/postgres > dump.sql
shell: bash

- name: Tweaking the dump file
run: |
sed -i -e 's/^DROP SCHEMA IF EXISTS "auth";$/-- DROP SCHEMA IF EXISTS "auth";/' dump.sql
Expand Down

0 comments on commit dffb6de

Please sign in to comment.