mirror of
https://github.com/tj-actions/install-postgresql.git
synced 2024-12-20 01:18:18 +00:00
17 lines
No EOL
595 B
Bash
17 lines
No EOL
595 B
Bash
echo "::group::set-postgres-path"
|
|
|
|
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::" |