Prevent publishing a main branch

This commit is contained in:
Oliver Davies 2020-10-12 09:15:27 +01:00
parent dbb272f188
commit 66e5d7b1ca

View file

@ -7,7 +7,7 @@
$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.";
exit(1);
}