From 84272b47251a9c2cb3559a7fbf6720223255cfb0 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 3 Nov 2024 14:22:31 -0500 Subject: [PATCH] fix: correct errors in brew doctor output when making a formula release The default homebrew setup with the macos-latest runners has issues that cause `brew doctor` to exit non-zero. The exit codes of the commands are ignored in case they are no longer necessary in the future. --- .github/workflows/release.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2965afc3d..0c159aa66 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -136,6 +136,19 @@ jobs: runs-on: macos-latest needs: release steps: + - name: Brew doctor + run: | + brew doctor || true + - name: Brew cleanup + run: | + echo "====> Untapping homebrew/core" + brew untap homebrew/core || true + echo "====> Untapping homebrew/cask" + brew untap homebrew/cask || true + echo "====> Uninstalling openssl@1.1" + brew uninstall openssl@1.1 || true + echo "====> Uninstalling ruby@3.0" + brew uninstall ruby@3.0 || true - name: Brew doctor run: brew doctor - name: Brew config