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:
1 file changed
+2
-1
@@ -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 \
|
||||
|
||||
Reference in new issue
Block a user