Skip to content

Commit

Permalink
grant access to the file for postgres user
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Jan 28, 2024
1 parent 2ec2b44 commit e0ea031
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/actions/setup-postgres-linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e0ea031

Please sign in to comment.