Prevent publishing a main
branch
This commit is contained in:
parent
dbb272f188
commit
66e5d7b1ca
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
$currentBranch = exec('git rev-parse --abbrev-ref HEAD');
|
$currentBranch = exec('git rev-parse --abbrev-ref HEAD');
|
||||||
|
|
||||||
if (in_array($currentBranch, ['develop', 'master', 'staging', 'production'])) {
|
if (in_array($currentBranch, ['develop', 'main', 'master', 'staging', 'production'])) {
|
||||||
print "Currently on ${currentBranch}. Aborting.";
|
print "Currently on ${currentBranch}. Aborting.";
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue