From e0ea031eb37b81d097429f096f5b22c1abb0d3e8 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Sat, 27 Jan 2024 19:01:21 -0500 Subject: [PATCH] grant access to the file for postgres user --- .github/actions/setup-postgres-linux/action.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/actions/setup-postgres-linux/action.yml b/.github/actions/setup-postgres-linux/action.yml index 7c9657d2..d61dc72f 100644 --- a/.github/actions/setup-postgres-linux/action.yml +++ b/.github/actions/setup-postgres-linux/action.yml @@ -9,14 +9,14 @@ runs: run: sudo systemctl start postgresql.service shell: bash -# - name: Configure the database -# run: sudo -u postgres psql -f ./scripts/setup_test_database.sql -# shell: bash - - name: Grant access to the file - run: sudo chown -R postgres:postgres ${{ github.action_path }}/setup_db.sh + run: sudo chown -R postgres:postgres ./scripts/setup_test_database.sql shell: bash - name: Configure the database - run: sudo -u postgres bash ${{ github.action_path }}/setup_db.sh + run: sudo -u postgres psql -f ./scripts/setup_test_database.sql shell: bash + +# - name: Configure the database +# run: sudo -u postgres bash ${{ github.action_path }}/setup_db.sh +# shell: bash