From 2ec2b443271f06301a7177c17463622beae46647 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Sat, 27 Jan 2024 18:58:45 -0500 Subject: [PATCH] grant access to the file for postgres user --- .github/actions/setup-postgres-linux/action.yml | 8 +++++--- .github/workflows/example-job.yml | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/actions/setup-postgres-linux/action.yml b/.github/actions/setup-postgres-linux/action.yml index d3ef266d..7c9657d2 100644 --- a/.github/actions/setup-postgres-linux/action.yml +++ b/.github/actions/setup-postgres-linux/action.yml @@ -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 diff --git a/.github/workflows/example-job.yml b/.github/workflows/example-job.yml index c17aad07..0c546baf 100644 --- a/.github/workflows/example-job.yml +++ b/.github/workflows/example-job.yml @@ -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: