Hello! I want to run my CI/CD only on MR to release branches (for example, “release/1.0.0)”. My question is it possible to get the version from the branch name (1.0.0) and set to to env variable? I would like to use it in my flow and update a version of my app automatically.
Hi @sshvaika the branch name is stored on the environment variable $SEMAPHORE_GIT_BRANCH. If your branch name contains the version string, you could extract it from this variable.