Skip to content

Instantly share code, notes, and snippets.

@pitchart
Created November 25, 2016 15:39
Show Gist options
  • Save pitchart/aba6840c7515543ad02c8df5e0fa6f11 to your computer and use it in GitHub Desktop.
Save pitchart/aba6840c7515543ad02c8df5e0fa6f11 to your computer and use it in GitHub Desktop.
Auomatic commit on symfony version bump with shivas/versioning-bundle
version-patch:
$(eval version := $(shell php app/console app:version:bump --patch=1))
$(SUDO) git add app/config/version.yml
$(SUDO) git commit -m "[RELEASE] version $(version)"
version-feature:
$(eval version := $(shell php app/console app:version:bump --minor=1))
$(SUDO) git add app/config/version.yml
$(SUDO) git commit -m "[RELEASE] version $(version)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment