diff options
author | Owen Ou <o@owenou.com> | 2023-07-01 10:50:55 -0700 |
---|---|---|
committer | Owen Ou <o@owenou.com> | 2023-07-01 11:23:31 -0700 |
commit | 25a0608a646e0674de1347f68b947502608fa86e (patch) | |
tree | 4ea5a6351ecad4dba896846d4a85b8cf296d6cf3 | |
parent | 4c15a17bf6d75b3eb9881382b38f9ae898f9ab60 (diff) |
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
-rw-r--r-- | .github/workflows/ci.yml | 3 |
1 files changed, 2 insertions, 1 deletions
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 \ |