Skip to content

Instantly share code, notes, and snippets.

@kfdm
Created January 12, 2013 18:25
Show Gist options
  • Save kfdm/4519762 to your computer and use it in GitHub Desktop.
Save kfdm/4519762 to your computer and use it in GitHub Desktop.
Watch a git repo and only rebuild if there are changes.
my_repo:
git.latest:
- name: https://github.com/some/repo.git
- rev: develop
- target: /opt/foo
run_make:
cmd.run:
- cwd: /opt/foo
- name: make install
- watch:
- git: my_repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment