0
0
Fork 0
mirror of https://github.com/tj-actions/install-postgresql.git synced 2025-06-11 13:12:49 +00:00

Updated cache location

This commit is contained in:
Tonye Jack 2023-09-12 10:14:41 -06:00
parent 72dd9bcd95
commit 4601cdae13
2 changed files with 4 additions and 4 deletions

View file

@ -14,11 +14,11 @@ runs:
run: |
set -x
if [[ "${{ runner.os }}" == "Linux" ]]; then
cache_dir="$(apt-cache policy postgresql-${{ inputs.postgresql_version }} | awk '/Filename/ {print $2}')"
cache_dir="/var/cache/apt/archives/"
elif [[ "${{ runner.os }}" == "macOS" ]]; then
cache_dir="$(brew --cache postgresql@${{ inputs.postgresql_version }})"
elif [[ "${{ runner.os }}" == "Windows" ]]; then
cache_dir="~\AppData\Local\Temp\chocolatey\postgresql-${{ inputs.postgresql_version }}"
cache_dir="~\AppData\Local\Temp\chocolatey"
fi
echo "cache_dir=$cache_dir" >> "$GITHUB_OUTPUT"
shell: bash