From 25a0608a646e0674de1347f68b947502608fa86e Mon Sep 17 00:00:00 2001 From: Owen Ou Date: Sat, 1 Jul 2023 10:50:55 -0700 Subject: [PATCH] Run `brew update-reset` when `brew update` fails `brew update` can fail for "Error: Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask failed!" Ref: https://github.com/owenthereal/jq/actions/runs/5432314910/jobs/9879266028#step:3:19 --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 29cdb264..115cd7a7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,7 +76,8 @@ jobs: submodules: true - name: Install packages run: | - brew update + # brew update sometimes fails with "Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask failed!" + brew update || brew update-reset brew install \ autoconf \ automake \