Prevent publishing of production
branches
This commit is contained in:
parent
323a70f596
commit
b90c128062
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue