diff --git a/ci/functions b/ci/functions index e77e57979096d2b9ebc5dc43a1aa1057dfa2fb80..3b184eb1a9ebfc367cdd2d69fbce2e61dd665075 100644 --- a/ci/functions +++ b/ci/functions @@ -1,6 +1,6 @@ function prepare_env() { curl https://api.github.com/repos/nextcloud/server/tags?per_page=50 > /tmp/tags - export MINOR_VERSION=`cat /tmp/tags | jq '.[] | select(.name|test("v'${MARKETTING_VERSION}'.")).name' | head -n1 | cut -d\" -f2 | cut -c2-` + export MINOR_VERSION=`cat /tmp/tags | jq '.[] | select(.name|test(".rc.")|not) |select(.name|test("v'${MARKETTING_VERSION}'.")).name' | head -n1 | cut -d\" -f2 | cut -c2-` export PATCH_NUMBER=`curl https://raw.githubusercontent.com/nextcloud/server/v${MINOR_VERSION}/version.php | grep '$OC_Version =' | cut -d, -f4 | cut -d] -f1 | xargs` echo "MARKETTING_VERSION=$MARKETTING_VERSION" echo "MINOR_VERSION=$MINOR_VERSION"