From c45618e1c3ec6d1b5b114e2231a4f1f0c242a4c8 Mon Sep 17 00:00:00 2001 From: Pierre Ozoux Date: Tue, 1 Nov 2022 15:49:50 +0000 Subject: [PATCH] Exclude rc versions. --- ci/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/functions b/ci/functions index e77e579..3b184eb 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" -- GitLab