mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
check for main branch on preview and release
This commit is contained in:
parent
0ae3bd0852
commit
e254eafa8d
@ -17,6 +17,16 @@
|
||||
|
||||
set -e
|
||||
|
||||
export branch=$(git status --branch --porcelain | cut -d' ' -f2)
|
||||
|
||||
if [[ $branch =~ main ]]
|
||||
then
|
||||
printf "On branch main, continuing\n" 1>&2
|
||||
else
|
||||
printf "Not branch main, bailing out\n" 1>&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
export REVISION=$(mvn help:evaluate -Dexpression=revision -q -DforceStdout)
|
||||
if [[ $REVISION =~ ([0-9]+)\.([0-9]+)\.([0-9]+)-SNAPSHOT ]]
|
||||
then
|
||||
|
@ -17,6 +17,17 @@
|
||||
|
||||
set -e
|
||||
|
||||
export branch=$(git status --branch --porcelain | cut -d' ' -f2)
|
||||
|
||||
if [[ $branch =~ main ]]
|
||||
then
|
||||
printf "On branch main, continuing\n" 1>&2
|
||||
else
|
||||
printf "Not branch main, bailing out\n" 1>&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
|
||||
export REVISION=$(mvn help:evaluate -Dexpression=revision -q -DforceStdout)
|
||||
if [[ $REVISION =~ ^([0-9]+)\.([0-9]+)\.([0-9]+)-SNAPSHOT$ ]]
|
||||
then
|
||||
|
Loading…
Reference in New Issue
Block a user