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

Updated the PATH regardless of cache hit outcome

This commit is contained in:
Tonye Jack 2023-09-12 11:11:05 -06:00
parent e9a9096690
commit 8e47058fa9
3 changed files with 26 additions and 14 deletions

View file

@ -48,18 +48,4 @@ fi
echo "Installed postgresql"
echo "Updating PATH..."
# Verify installation by running pg_dump directly
if [[ "$(uname -s)" == "NT"* ]] || [[ "$(uname -s)" == "MINGW"* ]] || [[ "$(uname -s)" == *"MSYS"* ]]; then
# shellcheck disable=SC2028
echo "C:\\Program Files\\PostgreSQL\\$INPUT_POSTGRESQL_VERSION\\bin" >> "$GITHUB_PATH"
elif [[ "$(uname -s)" == "Darwin" ]]; then
echo "/usr/local/opt/postgresql@${INPUT_POSTGRESQL_VERSION}/bin" >> "$GITHUB_PATH"
else
echo "/usr/lib/postgresql/$INPUT_POSTGRESQL_VERSION/bin" >> "$GITHUB_PATH"
fi
echo "Complete"
echo "::endgroup::"