Commit d8e60c93 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Fix regex for matching branch to generate docs

parent 052c5b14
......@@ -23,13 +23,15 @@ mkdir -p /home/etsi/dev/build
cd /home/etsi/dev/build
rm -r -v *
if [[ "$1" =~ .*-dev$ || "$1" =~ \d+(\.?\d)+ || "$1" == "master" ]]; then
if [[ $1 =~ ^(origin\/){0,1}([0-9]{1}(\.[0-9]){2}){1}-dev$ || $1 =~ ^(origin\/){0,1}([0-9]{1})(\.[0-9]){2,10}$ || $1 =~ ^(origin\/){0,1}master$ || $1 =~ ^(origin\/){0,1}Release-([0-9]{1})$ ]]; then
echo "++++ Try to generate docs for branch $1"
cd /home/etsi/dev/robot2doc/robot2doc
python3 create_sols.py ../../robot 'local' ../../build
res2=$?
else res=0
else res2=0
echo "++++ Not generating docs for branch $1"
fi
exit $res && $res2
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment