CI: fix branch name in opam release jobs
Context
Last time we published Octez was 15.0~rc1 and the opam:release job failed: https://gitlab.com/tezos/tezos/-/jobs/3155868131
It looks like it failed because it tried to create a branch with a tilde ~ in its name. This MR fixes this. The result makes scripts/ci/opam-release.sh look closer to scripts/opam-release.sh in how it handles the branch name.
Manually testing the MR
Unfortunately to test this kind of MR in real conditions one has to make a release. But you can test the name of the branch with some well-placed echo, running the scripts as:
CI_COMMIT_TAG=v123.42-rc3 CI_PROJECT_DIR=$PWD make -C .gitlab/ci opam-release
Checklist
-
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR