diff --git a/.github/actions/setup-postgres-linux/action.yml b/.github/actions/setup-postgres-linux/action.yml index 8e75577d..9e49c4ae 100644 --- a/.github/actions/setup-postgres-linux/action.yml +++ b/.github/actions/setup-postgres-linux/action.yml @@ -10,6 +10,6 @@ runs: shell: bash - name: Configure the database - run: sudo su - postgres "psql -f ./setup_test_database.sql" + run: sudo -u postgres psql -f setup_test_database.sql shell: bash working-directory: ./scripts