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
This commit is contained in:
Owen Ou committed 2023-07-01 11:23:31 -07:00
1 parent 4c15a17bf6
commit 25a0608a64
1 file changed
+2 -1
+2 -1
View File
@@ -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 \