Skip to content

Commit 550c19e

Browse files
Explicitly update brew formulae in CI before installing packages (#453)
1 parent 36ef69a commit 550c19e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/actions/homebrew-packages-setup/install.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ if [[ "${CACHE_HIT}" == "true" && "${INPUT_DOWNLOADS_HASH_FROM_PREPARE}" != "${i
3131
fi
3232

3333
if [[ "${skipInstalls}" == "false" ]]; then
34+
if [[ "${INPUT_CACHE_MODE}" == "prepare" ]]; then
35+
echo "::group::Update brew formulae"
36+
brew update
37+
echo "::endgroup::"
38+
fi
39+
3440
for tool in ${TOOLS_TO_INSTALL}; do
3541
echo "::group::Install ${tool}"
3642
brew install --quiet "${tool}"

0 commit comments

Comments
 (0)