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 27, 2024
1 parent e166b3d commit 2ec2b44
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/actions/setup-postgres-linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ runs:
# 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
shell: bash

- name: Configure the database
run: |
sudo chown -R postgres:postgres ${{ github.action_path }}/setup_db.sh
sudo -u postgres bash ${{ github.action_path }}/setup_db.sh
run: sudo -u postgres bash ${{ github.action_path }}/setup_db.sh
shell: bash
2 changes: 2 additions & 0 deletions .github/workflows/example-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Example Job

on:
pull_request:
branches:
- "*.latest"

# https://docs.github.com/en/actions/learn-github-actions/essential-features-of-github-actions
jobs:
Expand Down

0 comments on commit 2ec2b44

Please sign in to comment.