Commit f750c29b authored by Jan Kiene's avatar Jan Kiene
Browse files

fix ref name in check-float-ref-companion-branch-exits...

parent 0db3f3c9
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -28,13 +28,13 @@
# accordance with the laws of the Federal Republic of Germany excluding its conflict of law rules and
# the United Nations Convention on Contracts on the International Sales of Goods.

set -euo pipefail

MSG_NO_FLOAT_REF_BRANCH_FOUND="Your branch name %s looks like it is a porting MR, but there is no corresponding float merge request (%s).
If this is intended (nothing to port to ivas-float-update), simply ignore this warning.
If there should be a float ref branch for this MR, please check your spelling on your other branch and make sure that you pushed it.\n
"

set -euxo pipefail

exit_code_is_porting_mr=0
bash "${CI_PROJECT_DIR}"/ivas-codec-ci/snippets/basop/branch-follows-porting-naming-convention.sh "$CI_COMMIT_REF_NAME" || exit_code_is_porting_mr=$?

@@ -43,9 +43,9 @@ if [ "$exit_code_is_porting_mr" == "1" ]; then
  exit 0
fi

# if this does indeed look like a porting branch, get the float companion branch - if that is ivas-float-update, then warn about possible typo/missing branch
# if this does indeed look like a porting branch, get the float companion branch - if that is the default, then warn about possible typo/missing branch
float_ref_branchname=$(${CI_PROJECT_DIR}/ivas-codec-ci/snippets/basop/get-float-ref-branch-name.sh $CI_COMMIT_REF_NAME)
if [ "$float_ref_branchname" == "ivas-float-update" ]; then
if [ "$float_ref_branchname" == "main" ]; then
  expected_float_ref_branch="${CI_COMMIT_REF_NAME/basop/ref}"
  printf "$MSG_NO_FLOAT_REF_BRANCH_FOUND" "$CI_COMMIT_REF_NAME" "$expected_float_ref_branch"
  exit 123