mirror of
https://github.com/techno-tim/k3s-ansible.git
synced 2025-12-28 11:42:37 +01:00
fix(ci): adjusting cache steps
This commit is contained in:
3
.github/workflows/cache.yml
vendored
3
.github/workflows/cache.yml
vendored
@@ -45,6 +45,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Configure Homebrew cache
|
- name: Configure Homebrew cache
|
||||||
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0
|
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0
|
||||||
|
id: cache-homebrew
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/Library/Caches/Homebrew
|
~/Library/Caches/Homebrew
|
||||||
@@ -52,11 +53,13 @@ jobs:
|
|||||||
restore-keys: brew-
|
restore-keys: brew-
|
||||||
|
|
||||||
- name: Update Homebrew
|
- name: Update Homebrew
|
||||||
|
if: steps.cache-homebrew.outputs.cache-hit != 'true' # only run if false since this is just a cache step
|
||||||
run: |
|
run: |
|
||||||
brew update --preinstall
|
brew update --preinstall
|
||||||
echo ${{ hashFiles ('"$(brew --repository)"') }} > .github/brew-formulae
|
echo ${{ hashFiles ('"$(brew --repository)"') }} > .github/brew-formulae
|
||||||
|
|
||||||
- name: Install Homebrew dependencies
|
- name: Install Homebrew dependencies
|
||||||
|
if: steps.cache-homebrew.outputs.cache-hit != 'true' # only run if false since this is just a cache step
|
||||||
run: |
|
run: |
|
||||||
env HOMEBREW_NO_AUTO_UPDATE=1 brew install virtualbox vagrant
|
env HOMEBREW_NO_AUTO_UPDATE=1 brew install virtualbox vagrant
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user