From 23f02b60b61bf9b2858f688b71b1eb4745d4e3d2 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Mon, 29 Jan 2024 18:53:13 -0500 Subject: [PATCH] test add environment variables from script --- .github/actions/setup-postgres-linux/action.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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