This repository was archived by the owner on Mar 12, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
.github/workflows/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ REPO_URI="https://$ZETTA_REPO_ACCESS_TOKEN@github.com/zetta-genomics/opencga-ent
2222
2323# 1. If the branch begins with 'TASK' and exists in the opencga-enterprise repository, return it
2424if [[ $head_ref == TASK* ]]; then
25- if [ " $( git ls-remote " $REPO_URI " " $head_ref " ) " ] ; then
25+ if [ " $( git ls-remote " $REPO_URI " " $head_ref " ) " ] ; then
2626 echo " $head_ref " ;
2727 exit 0
2828 fi
@@ -63,8 +63,8 @@ if [[ "$base_ref" =~ ^release-([0-9]+)\. ]]; then
6363 # Extract the rest of the version (minor and patch) from base_ref
6464 rest_version=$( echo " $base_ref " | sed -E " s/^release-[0-9]+(\..*)/\1/" )
6565 target_branch=" release-${new_major}${rest_version} "
66- # Check if the exact branch exists
67- if [ " $( git ls-remote --heads \ "$REPO_URI \" $target_branch ) " ]; then
66+ # Check if the exact branch exists (fix: do not escape quotes)
67+ if [ " $( git ls-remote --heads " $REPO_URI " " $target_branch " ) " ]; then
6868 echo " $target_branch "
6969 exit 0
7070 else
You can’t perform that action at this time.
0 commit comments