Prevent publishing of production branches

This commit is contained in:
Oliver Davies 2019-11-07 13:43:18 +00:00
parent 323a70f596
commit b90c128062

View file

@ -3,7 +3,7 @@
$currentBranch = exec('git rev-parse --abbrev-ref HEAD');
if (in_array($currentBranch, ['master', 'develop', 'staging'])) {
if (in_array($currentBranch, ['master', 'production', 'develop', 'staging'])) {
print "Currently on ${currentBranch}. Aborting.";
exit(1);
}