refactor: combine bin directories

This commit is contained in:
Oliver Davies 2022-10-11 22:09:42 +01:00
parent f3f1051f1f
commit 459428a979
16 changed files with 0 additions and 38 deletions

15
bin/git-publish Executable file
View file

@ -0,0 +1,15 @@
#!/usr/bin/env php
<?php
/**
* Usage: git publish
*/
$currentBranch = exec('git rev-parse --abbrev-ref HEAD');
if (in_array($currentBranch, ['develop', 'main', 'master', 'staging', 'production'])) {
print "Currently on ${currentBranch}. Aborting.";
exit(1);
}
exec("git push -u origin $currentBranch:opd-{$currentBranch}");