Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress Homebrew warnings #48

Merged
merged 1 commit into from
Oct 23, 2024
Merged
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
13 changes: 9 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,20 @@ runs:
echo "PQ_LIB_DIR=$PG_LIBDIR" >> $GITHUB_ENV

elif [ "$RUNNER_OS" == "macOS" ]; then
export HOMEBREW_NO_ENV_HINTS=1
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
export HOMEBREW_NO_INSTALL_CLEANUP=1
export HOMEBREW_NO_INSTALL_UPGRADE=1
brew install --skip-post-install postgresql@${{ inputs.postgres-version }}
brew install --quiet --skip-post-install postgresql@${{ inputs.postgres-version }}

# Link PostgreSQL binaries from /usr/local/bin in order to make them
# available globally. The overwrite option is required since some
# GitHub runners come with preinstalled PostgreSQL binaries.
brew link --overwrite postgresql@${{ inputs.postgres-version }}
# available globally. The --overwrite option is required since some
# GitHub runners come with preinstalled PostgreSQL binaries, and we
# have to link the required version of PostgreSQL. The unlinking step
# is needed to suppress "Already linked" warning which is propagated
# back to users.
brew unlink --quiet postgresql@${{ inputs.postgres-version }}
brew link --quiet --overwrite postgresql@${{ inputs.postgres-version }}
fi
shell: bash

Expand Down
Loading