Skip to content
Snippets Groups Projects
Commit dd8159e2 authored by Dimitrios Giannopoulos's avatar Dimitrios Giannopoulos
Browse files

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

parent 49d0b0b0
No related branches found
No related tags found
1 merge request!37fix: if tag exists and protected branch, APP_VERSION=tag
Pipeline #7268 passed
......@@ -8,7 +8,7 @@ stages:
.default:
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
elif [ "$CI_COMMIT_REF_NAME" = "develop" ]; then
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