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

setup-homebrew: source homebrew from standard locations #308

Merged
merged 5 commits into from
Sep 27, 2022
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions .github/workflows/setup-homebrew.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ jobs:
- run: brew test-bot --only-setup

- run: brew test-bot --only-tap-syntax
# temporary disable this until brew audit is fixed here
# see https://github.com/Homebrew/actions/pull/308
if: matrix.os != 'ubuntu-latest'
8 changes: 6 additions & 2 deletions setup-homebrew/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@ function git_retry {

# Check brew's existence
if ! which brew &>/dev/null; then
echo "Could not find 'brew' command in PATH."
exit 1
PATH="/home/linuxbrew/.linuxbrew/bin:/opt/homebrew/bin:/usr/local/bin:$PATH"

if ! which brew &>/dev/null; then
echo "Could not find 'brew' command in PATH or standard locations."
exit 1
fi
fi

# Set basic variables
Expand Down