Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ runs:
sudo make install # Use sudo to install globally
cd ${{ github.action_path }} # Return to action directory

- name: Prepare postgresql client directory
shell: bash
run: |
sudo mkdir -p /usr/lib/postgresql/${{ inputs.postgres-version }}
sudo chown -R $(whoami) /usr/lib/postgresql/${{ inputs.postgres-version }}

- name: Cache postgresql-client
uses: actions/cache@v4
id: pg-client-cache
Expand All @@ -73,6 +79,7 @@ runs:
echo "deb [signed-by=/usr/share/keyrings/postgresql.gpg] https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
sudo apt-get update
sudo apt-get install -y postgresql-client-${{ inputs.postgres-version }}
sudo chown -R $(whoami) /usr/lib/postgresql/${{ inputs.postgres-version }}

- name: Start PostgreSQL
shell: bash
Expand Down
Loading