From fa42b8d322db093824ae6378eb9c60e4dfe7f9a7 Mon Sep 17 00:00:00 2001
From: Dimitrios Giannopoulos <dimit.giannopoulos@upnet.gr>
Date: Tue, 19 Dec 2023 11:59:50 +0000
Subject: [PATCH] added default app version

---
 ci-templates/default.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ci-templates/default.yml b/ci-templates/default.yml
index f21a955..ede18c0 100644
--- a/ci-templates/default.yml
+++ b/ci-templates/default.yml
@@ -7,12 +7,16 @@ stages:
 
 # Default configuration for all jobs
 .default:
+  variables:
+    DEFAULT_VERSION: "1.2.0-SNAPSHOT"
   before_script:
     - |
       if [ "$CI_COMMIT_REF_NAME" = "main" ] && [ -n "$CI_COMMIT_TAG" ]; then
         export APP_VERSION=$CI_COMMIT_TAG
       elif [ "$CI_COMMIT_REF_NAME" = "develop" ]; then
         export APP_VERSION="develop"
+      else
+        export APP_VERSION=$DEFAULT_VERSION
       fi
 
 # Configuration for jobs on protected branches
-- 
GitLab