Skip to content

Instantly share code, notes, and snippets.

@yomybaby
Forked from hcurotta/post-merge
Last active August 29, 2015 14:07
Show Gist options
  • Save yomybaby/90ba2011052b7a194bc5 to your computer and use it in GitHub Desktop.
Save yomybaby/90ba2011052b7a194bc5 to your computer and use it in GitHub Desktop.
#!/bin/bash
branch_name=$(git symbolic-ref --short HEAD)
if [ "$branch_name" == 'dev' ] || [ "$branch_name" == 'staging' ]
then
git commit --allow-empty -m 'empty commit to trigger deployment'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment