From f8e408b3bd08db9eae3a4b0309b1ed033b409587 Mon Sep 17 00:00:00 2001 From: Timothy Stewart Date: Sun, 21 Jan 2024 15:40:17 -0600 Subject: [PATCH] fix(ci): adjusting cache steps --- .github/workflows/cache.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index dfe06b7..c74d2e2 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -45,6 +45,7 @@ jobs: - name: Configure Homebrew cache uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0 + id: cache-homebrew with: path: | ~/Library/Caches/Homebrew @@ -52,11 +53,13 @@ jobs: restore-keys: brew- - name: Update Homebrew + if: steps.cache-homebrew.outputs.cache-hit != 'true' # only run if false since this is just a cache step run: | brew update --preinstall echo ${{ hashFiles ('"$(brew --repository)"') }} > .github/brew-formulae - name: Install Homebrew dependencies + if: steps.cache-homebrew.outputs.cache-hit != 'true' # only run if false since this is just a cache step run: | env HOMEBREW_NO_AUTO_UPDATE=1 brew install virtualbox vagrant