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:
parent
e9a9096690
commit
8e47058fa9
3 changed files with 26 additions and 14 deletions
|
@ -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::"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue