Skip to content
Snippets Groups Projects
Commit 6fbcdfe3 authored by trantzas's avatar trantzas
Browse files

Merge branch '2024Q2_RC' into 'main'

fix: if tag exists and protected branch, APP_VERSION=tag

See merge request !37
parents d2c4b44c dd8159e2
No related branches found
No related tags found
1 merge request!37fix: if tag exists and protected branch, APP_VERSION=tag
Pipeline #7292 passed
...@@ -8,7 +8,7 @@ stages: ...@@ -8,7 +8,7 @@ stages:
.default: .default:
before_script: before_script:
- | - |
if [ "$CI_COMMIT_REF_NAME" = "main" ] && [ -n "$CI_COMMIT_TAG" ]; then if [ "$CI_COMMIT_REF_PROTECTED" = true ] && [ -n "$CI_COMMIT_TAG" ]; then
export APP_VERSION=$CI_COMMIT_TAG export APP_VERSION=$CI_COMMIT_TAG
elif [ "$CI_COMMIT_REF_NAME" = "develop" ]; then elif [ "$CI_COMMIT_REF_NAME" = "develop" ]; then
export APP_VERSION="develop" export APP_VERSION="develop"
......
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