-
-
Save mlocher/8235a0a871322d3d8bfe to your computer and use it in GitHub Desktop.
BitBucket post-merge hook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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
All credit goes to @hcurotta, I only forked it so I'll find it again ;)