diff --git a/.github/actions/setup-postgres-linux/action.yml b/.github/actions/setup-postgres-linux/action.yml index 427c3982..0d46b177 100644 --- a/.github/actions/setup-postgres-linux/action.yml +++ b/.github/actions/setup-postgres-linux/action.yml @@ -13,8 +13,11 @@ runs: - name: Configure the database shell: bash - run: sudo su - postgres psql -c 'CREATE DATABASE dbt;' - env: - PGUSER: postgres - PGPORT: 5432 - PGHOST: localhost + run: | + sudo su - postgres PGUSER=postgres + sudo su - postgres export PGUSER + sudo su - postgres PGPORT=5432 + sudo su - postgres export PGPORT + sudo su - postgres PGHOST=localhost + sudo su - postgres export PGHOST + sudo su - postgres createdb dbt