Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
oops don't need to create a db
Browse files Browse the repository at this point in the history
  • Loading branch information
cisaacstern committed Dec 7, 2023
1 parent abf31e1 commit 146a892
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/test-db-backup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,11 @@ jobs:
sudo apt-get update
sudo apt-get install --yes postgresql-client
- name: Create database
run: |
echo "CREATE DATABASE restore;" | psql -h postgres -U postgres_user
env:
PGPASSWORD: postgres_password

# https://devcenter.heroku.com/articles/heroku-postgres-import-export#restore-to-local-database
- name: Restore database from file
run: |
pg_restore --verbose --clean --no-acl --no-owner \
-h postgres -U postgres_user -d restore \
-h postgres -U postgres_user -d postgres_db \
db-backup/810fa5e1-9b78-4f3c-97e0-a1847b3a65e6
env:
PGPASSWORD: postgres_password
Expand Down

0 comments on commit 146a892

Please sign in to comment.