Skip to content
This repository was archived by the owner on Mar 12, 2026. It is now read-only.

Commit 9dee90c

Browse files
Add debug token file #TASK-8067
1 parent b7a4a5c commit 9dee90c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/scripts/get_opencga_enterprise_branch.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
2424
if [[ $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

0 commit comments

Comments
 (0)