Skip to content
Snippets Groups Projects
Commit c45618e1 authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

Exclude rc versions.

parent 35d8aa1a
No related branches found
No related tags found
1 merge request!18Adds possibility to skip visio url.
Pipeline #1294 passed with stages
in 4 minutes and 58 seconds
function prepare_env() { function prepare_env() {
curl https://api.github.com/repos/nextcloud/server/tags?per_page=50 > /tmp/tags 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` 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 "MARKETTING_VERSION=$MARKETTING_VERSION"
echo "MINOR_VERSION=$MINOR_VERSION" echo "MINOR_VERSION=$MINOR_VERSION"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment