This is an automated email from the ASF dual-hosted git repository.

cbrisson pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/velocity-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 367d3c4  [site/builder] Check branch of production repository
367d3c4 is described below

commit 367d3c4d4870e9822481a630c209d3ef192b8ef5
Author: Claude Brisson <[email protected]>
AuthorDate: Fri Feb 12 19:48:10 2021 +0100

    [site/builder] Check branch of production repository
---
 builder/bin/builder.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/builder/bin/builder.sh b/builder/bin/builder.sh
index f7ac26a..91644c0 100755
--- a/builder/bin/builder.sh
+++ b/builder/bin/builder.sh
@@ -59,6 +59,11 @@ then
    exit 1
 fi
 cd velocity-site-prod
+BRANCH="$(git status -bs | head -1 | sed -r -e 's,^.*origin/,,')"
+if test "$BRANCH" != "asf-site"
+then
+    echo velocity-site-prod repository not on the asf-site branch, exiting
+fi
 
 # The philosophy here is to cache the image but not the container.
 

Reply via email to