diff --git a/.github/workflows/setup-homebrew.yml b/.github/workflows/setup-homebrew.yml index a5191121..5e5cb0ab 100644 --- a/.github/workflows/setup-homebrew.yml +++ b/.github/workflows/setup-homebrew.yml @@ -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' diff --git a/setup-homebrew/main.sh b/setup-homebrew/main.sh index 00029cb4..bfa702ef 100755 --- a/setup-homebrew/main.sh +++ b/setup-homebrew/main.sh @@ -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