From fd3089d791a6b7e86eb1939fbb31fafeb28ba377 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Mon, 29 Jan 2024 19:01:36 -0500 Subject: [PATCH] test add environment variables from script --- .github/actions/setup-postgres-linux/action.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/actions/setup-postgres-linux/action.yml b/.github/actions/setup-postgres-linux/action.yml index 4d011b17..ccdadc41 100644 --- a/.github/actions/setup-postgres-linux/action.yml +++ b/.github/actions/setup-postgres-linux/action.yml @@ -13,11 +13,4 @@ runs: - name: Configure the database shell: bash - run: | - sudo su - postgres bash "PGUSER=postgres" - sudo su - postgres bash "export PGUSER" - sudo su - postgres bash "PGPORT=5432" - sudo su - postgres bash "export PGPORT" - sudo su - postgres bash "PGHOST=localhost" - sudo su - postgres bash "export PGHOST" - sudo su - postgres bash "createdb dbt" + run: sudo -u psql -c "CREATE DATABASE dbt;"