Whan I am using release branches in release/* format, for example, my branch name is release/1.2 I am getting 1.2 as the current branch.
|Current branch: 1.2
|Release branch name: release/1.2
|Skipping for 1.2 branch
My guess is that this is related to branch=${CI_COMMIT_REF_NAME##*/}. Is it possible to replase ${CI_COMMIT_REF_NAME##*/} with ${CI_COMMIT_REF_NAME#refs/heads/} ?