]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-website-prs: disallow branches named 'main' 2255/head
authorJosh Durgin <jdurgin@redhat.com>
Wed, 12 Jun 2024 19:29:37 +0000 (15:29 -0400)
committerJosh Durgin <jdurgin@redhat.com>
Wed, 12 Jun 2024 19:30:14 +0000 (15:30 -0400)
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
ceph-website-prs/build/build

index 51ec07a62fcd8f8c2ae29cb3e7533beacd1d23c2..1bdb6547807792a4e38d86293d9be047e4803118 100755 (executable)
@@ -10,6 +10,11 @@ npm ci
 
 npm run build:development
 
+if [ "$BRANCH" = "main" ]; then
+  echo "branch must not be named 'main', exiting"
+  exit 1
+fi
+
 if [ ! -d /opt/www/${BRANCH} ]; then
   mkdir -p /opt/www/${BRANCH}
 fi