From 8716a12877cab5d4100f8c8a95efdfc9897c2a52 Mon Sep 17 00:00:00 2001 From: Michelle Ark Date: Tue, 10 Sep 2024 17:23:12 -0400 Subject: [PATCH] bash --- .github/actions/setup-postgres-windows/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/setup-postgres-windows/action.yml b/.github/actions/setup-postgres-windows/action.yml index aaf42da31f6..bf83a457d10 100644 --- a/.github/actions/setup-postgres-windows/action.yml +++ b/.github/actions/setup-postgres-windows/action.yml @@ -7,8 +7,8 @@ runs: run: | choco install postgresql16 --params "/Password:password" --ia "--enable-components server,commandlinetools --extract-only 1" --no-progress - $Env:PG_BINDIR = & "$PROGRAMFILES/PostgreSQL/16/bin/pg_config.exe" --bindir | Out-String - $Env:PG_LIBDIR = & "$PROGRAMFILES/PostgreSQL/16/bin/pg_config.exe" --libdir | Out-String + bash PG_BINDIR=$("$PROGRAMFILES/PostgreSQL/${{ inputs.postgres-version }}/bin/pg_config.exe" --bindir) + bash PG_LIBDIR=$("$PROGRAMFILES/PostgreSQL/${{ inputs.postgres-version }}/bin/pg_config.exe" --libdir) $pgService = Get-Service -Name postgresql* Set-Service -InputObject $pgService -Status running -StartupType automatic