You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2021/04/09 11:18:54 UTC

[isis] 01/04: ISIS-2484: fixes REVISION

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

danhaywood pushed a commit to branch 2.0.0-M5
in repository https://gitbox.apache.org/repos/asf/isis.git

commit 5dcec8012f4432cf3e8ecf43202b6e9e100d77be
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Thu Apr 8 22:23:55 2021 +0100

    ISIS-2484: fixes REVISION
---
 preview.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/preview.sh b/preview.sh
index 0d78c24..a9d66a7 100644
--- a/preview.sh
+++ b/preview.sh
@@ -12,6 +12,10 @@ export ANTORA_TARGET_SITE=antora/target/site
 #
 PLAYBOOK_FILE=antora/playbooks/site.yml
 
+BRANCH=$(git branch --show-current)
+DATE=$(date +%Y%m%d-%H%M)
+export REVISION="${BRANCH}.${DATE}"
+
 while getopts 'ECDAKSLecdaksxylhf:' opt
 do
   case $opt in