Skip to content

Instantly share code, notes, and snippets.

@hjhart
Created June 18, 2019 21:59
Show Gist options
  • Save hjhart/ec8d2484f19763dc22a73064a06308f0 to your computer and use it in GitHub Desktop.
Save hjhart/ec8d2484f19763dc22a73064a06308f0 to your computer and use it in GitHub Desktop.
update_homebrew_formula:
description: Pulls in new homebrew formula and caches them
steps:
- run:
name: Set up Cache Key
command: date '+%Y %m %d' > ~/voom/dependency_checksum
- restore_cache:
keys:
- v3-homebrew-{{ .Branch }}-{{ checksum "~/voom/dependency_checksum" }}
- v3-homebrew-{{ .Branch }}
- run:
name: Update Homebrew formulas
command: brew update
- save_cache:
key: v3-homebrew-{{ .Branch }}-{{ checksum "~/voom/dependency_checksum" }}
paths:
- /usr/local/Homebrew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment