Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01ae97ff authored by Jackeagle's avatar Jackeagle
Browse files

Add parameterized tag creation with CREATE_TAG variable

Tag creation now only happens when CREATE_TAG=true is explicitly set.
This provides flexibility to update manifests without creating git tags.
parent f097d178
Loading
Loading
Loading
Loading
+13 −6
Original line number Diff line number Diff line
@@ -196,13 +196,20 @@ git push origin HEAD:$CI_COMMIT_REF_NAME



if [ "$CREATE_TAG" = "true" ]
then
    echo "CREATE_TAG=true: Creating git tag"
    if [ -z "$PREVERSION" ] 
    then
        git tag $new_version_without_android-$current_version

        echo "Created tag: $new_version_without_android-$current_version"
    else
        git tag $new_version_without_android-${PREVERSION}-$current_version
        echo "Created tag: $new_version_without_android-${PREVERSION}-$current_version"
    fi
    git remote -v
    git push --tags
else
    echo "CREATE_TAG not set to true: Skipping tag creation"
fi
cd "$SRC_DIR/$CI_COMMIT_REF_NAME"